EIP2612PermitAndDeposit
This contract allows to delegate during the deposits using signatures (EIP-2612).
Write methods description
depositToAndDelegate()
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)). |
initialize()
Allows to initialize the contract during the deployment. The method does not take any parameters.
permitAndDepositToAndDelegate()
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)). |
Read methods description
This contract does not have read methods.
Last updated