DullahanZapDeposit

aave

address aave

Address of the AAVE token

stkAave

address stkAave

Address of the stkAAVE token

vault

address vault

Address of the Dullahan Vault

staking

address staking

Address of the Dullahan Staking

ZapDeposit

event ZapDeposit(address caller, address receiver, address sourceToken, uint256 amount, bool staked)

Event emitted when a Zap Depsoit is performed

TokenRecovered

event TokenRecovered(address token, uint256 amount)

Event emitted when an ERC20 token is recovered from this contract

constructor

constructor(address _aave, address _stkAave, address _vault, address _staking) public

zapDeposit

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

Parameters

pause

function pause() external

Pause the contract

unpause

function unpause() external

Unpause the contract

recoverERC20

function recoverERC20(address token) external returns (bool)

Recover ERC2O tokens in the contract

Recover ERC2O tokens in the contract

Parameters

Return Values

Last updated