DullahanZapDeposit
address aave
Address of the AAVE token
address stkAave
Address of the stkAAVE token
address vault
Address of the Dullahan Vault
address staking
Address of the Dullahan Staking
event ZapDeposit(address caller, address receiver, address sourceToken, uint256 amount, bool staked)
Event emitted when a Zap Depsoit is performed
event TokenRecovered(address token, uint256 amount)
Event emitted when an ERC20 token is recovered from this contract
constructor(address _aave, address _stkAave, address _vault, address _staking) public
function zapDeposit(address sourceToken, uint256 amount, address receiver, bool stake) external
Zap deposit AAVE or stkAAVE into the Vault & stake them
Pull AAVE or stkAAVE, deposit in the Vault, and stake if flag was given
Name | Type | Description |
---|---|---|
sourceToken | address | Address of the token to pull (AAVE or stkAAVE) |
amount | uint256 | Amount to deposit |
receiver | address | Address to receive the share token / to be staked on behalf of |
stake | bool | Flag to stake the received shares |
function pause() external
Pause the contract
function unpause() external
Unpause the contract
function recoverERC20(address token) external returns (bool)
Recover ERC2O tokens in the contract
Recover ERC2O tokens in the contract
Name | Type | Description |
---|---|---|
token | address | Address of the ERC2O token |
Name | Type | Description |
---|---|---|
[0] | bool | bool: success |
Last modified 1mo ago