-
Notifications
You must be signed in to change notification settings - Fork 8
ZapCurvePoolUSDC
senamakel edited this page Dec 7, 2024
·
2 revisions
contract IERC20 usdcaddress odosconstructor(address _staking, address _psm, address _usdc, address _odos) publicfunction zapWithOdos(contract IERC20 swapAsset, uint256 swapAmount, uint256 minLpAmount, bytes odosCallData) external payableZaps collateral into ZAI LP tokens
This function is used when the user only has collateral tokens.
function _addLiquidity(uint256 zaiAmt, uint256 collatAmt, uint256 minLp) internal virtual