Skip to content

ZapCurvePoolUSDC

senamakel edited this page Dec 7, 2024 · 2 revisions

Solidity API

ZapCurvePoolUSDC

usdc

contract IERC20 usdc

odos

address odos

constructor

constructor(address _staking, address _psm, address _usdc, address _odos) public

zapWithOdos

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

Zaps collateral into ZAI LP tokens

This function is used when the user only has collateral tokens.

_addLiquidity

function _addLiquidity(uint256 zaiAmt, uint256 collatAmt, uint256 minLp) internal virtual

Clone this wiki locally