EIP2612PermitAndDeposit
Last updated
Last updated
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 |
---|---|---|
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 |
---|---|---|
This contract does not have read methods.
_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)).
_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)).