Comment on page
EIP2612PermitAndDeposit
This contract allows to delegate during the deposits using signatures (EIP-2612).
Deposits user’s token into the prize pool and delegates tickets.
Parameters:
Name | Type | Description |
---|---|---|
_prizePool | address | An address of the prize pool contract to deposit into. |
_amount | uint256 | Amount of tokens to deposit into the prize pool. |
_to | address | An address that will receive the tickets. |
_delegateSignature | tuple | Delegate signature (delegate (address), signature (tuple)). |
Allows to initialize the contract during the deployment. The method does not take any parameters.
Permits this contract to spend on a user’s behalf and deposits into the prize pool. The
_spender
address required by the permit function is the address of this contract.Parameters:
Name | Type | Description |
---|---|---|
_prizePool | address | An address of the prize pool contract to deposit into. |
_amount | uint256 | Amount of tokens to deposit into the prize pool. |
_to | address | An address that will receive the tickets. |
_permitSignature | tuple | Permit signature (deadline (uint256), v (uint8), r (bytes32), s (bytes32)). |
_delegateSignature | tuple | Delegate signature (delegate (address), signature (tuple)). |
This contract does not have read methods.
Last modified 6mo ago