circle-exclamation
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Approval Facet handles all approval and permit related functions for the Silo.
Copy function approveDeposit (
address spender ,
address token ,
uint256 amount
) external payable nonReentrant ; Approves an address to access a Farmer's Deposit.
Address to be given approval.
Copy function increaseDepositAllowance (
address spender ,
address token ,
uint256 addedValue
) public virtual nonReentrant returns ( bool ); Increases transfer allowance of a Deposit.
Address to increase approval for.
Additional approval value to be given.
If the allowance increase was successful.
Decreases transfer allowance of a Deposit.
Address to decrease approval for.
Amount of approval value to be removed.
Farm balances and Silo Deposits support EIP-2612 permitsarrow-up-right , which allows Farmers to delegate use of their Farm balances and Silo Deposits through permits without the need for a separate transaction.
Permits multiple Deposits.
Array of ERC20s to permit.
Array of amount (corresponding to tokens) to permit.
Expiration of signature (Unix time).
Permits a single Deposit.
Amount of token to permit.
Expiration of signature (Unix time).
Set ERC-1155 approvals. Grants or revokes permission to operator to transfer the caller’s tokens, according to approved.
Address to approve spending for.
Whether or not to approve.
Returns the current nonce for Deposit permits.
Current nonce for Deposit permits.
Returns the domain separator for the current chain (linkarrow-up-right ).
The domain separator for the current chain.
Returns how much of a token Deposit that spender can transfer on behalf of owner.
The address that can spend the Deposit.
The token Deposit that spender can transfer.
The token Deposit amount that spender can transfer on behalf of owner.
Returns true if _operator is approved to transfer _owner's Deposit.
True if _operator is approved to transfer _owner's tokens.
Emitted when a Deposit is approved to spend by another account.
Deposit token that can be spent.
Amount of the Deposit token that can be spent.
Emitted when account grants or revokes permission to operator to transfer their tokens, according to approved (linkarrow-up-right ).
Whether or not the Deposit was approved.