AmphorSyntheticVaultWithPermit
Solidity version
Inheritance
AmphorSyntheticVault
of Amphor.ERC20Permit
of OpenZeppelin.
State Variables
PermitParams
The 'struct' PermitParams
is used to pass the permit signature and data.
Name | Type | Description |
---|---|---|
|
| The amount of tokens the spender is allowed to spend. |
|
| The timestamp after which the permit is no longer valid. |
|
| The recovery byte of the permit signature. |
|
| Half of the ECDSA signature pair of the permit. |
|
| Half of the ECDSA signature pair of the permit. |
Functions
depositWithPermit
The depositWithPermit
function is used to deposit underlying assets into the vault with a permit for approval.
Name | Type | Description |
---|---|---|
|
| The amount of underlying assets amount to be converted into shares (LP tokens). |
|
| The |
|
| The permit struct containing the permit signature and data. |
depositWithPermitMinShares
The depositWithPermitMinShares
function is used to deposit underlying assets into the vault using a permit for approval.
Name | Type | Description |
---|---|---|
|
| The underlying assets amount to be converted into shares. |
|
| The |
|
| The minimum amount of shares to be received in exchange of the specified underlying assets amount. |
|
| The |
mintWithPermitMaxAssets
The mintWithPermit
function is used to mint the specified shares amount in exchange of the corresponding underlying assets amount from _msgSender()
using a permit for approval.
Name | Type | Description |
---|---|---|
|
| The amount of shares to be converted into underlying assets. |
|
| The |
|
| The maximum amount of underlying assets to be deposited in exchange of the specified shares amount. |
|
| The permit struct containing the permit signature and data. |
mintWithPermit
The mintWithPermit
function is used to mint the specified number of shares (LP tokens) in exchange for the corresponding amount of underlying assets from _msgSender()
using a permit for approval.
Name | Type | Description |
---|---|---|
|
| The number of shares (LP tokens) to be converted into underlying assets |
|
| The |
|
| The maximum amount of underlying assets to be deposited in exchange for the specified number of shares (LP tokens). |
|
| The permit struct containing the permit signature and data. |
Last updated