Skip to content

ZapAerodromePoolUSDC

senamakel edited this page Dec 14, 2024 · 4 revisions

Solidity API

ZapAerodromePoolUSDC

odos

address odos

constructor

constructor(address _staking, address _bridge, address _router, address _odos) public

_zapIntoLP

function _zapIntoLP(uint256 collateralAmount, uint256 minLpAmount) internal

Internal function to zap collateral into ZAI LP tokens

Decides which zap function to use based on pool price stability

Parameters

Name Type Description
collateralAmount uint256 The amount of USDC available for LP zapping
minLpAmount uint256 The minimum LP tokens to receive after zapping

zapWithOdos

function zapWithOdos(contract IERC20 swapAsset, uint256 swapAmount, uint256 minLpAmount, bytes odosCallData) external payable

Zaps collateral into ZAI LP tokens with any token by using Odos

Parameters

Name Type Description
swapAsset contract IERC20 The asset to swap into USDC using Odos
swapAmount uint256 The amount of swapAsset to swap
minLpAmount uint256 The minimum LP tokens to receive after zapping
odosCallData bytes Encoded Odos swap data

_zapDepegged

function _zapDepegged(uint256 collateralAmount, uint256 minLpAmount) internal

_zapNormal

function _zapNormal(uint256 collateralAmount, uint256 minLpAmount) internal

Clone this wiki locally