We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This contract allows users to perform a Zap operation by swapping collateral for zai tokens, adding liquidity to curve LP, and staking the LP tokens.
contract IERC4626 staking
contract IERC20Metadata pool
contract IERC20Metadata zai
contract IERC20Metadata collateral
uint256 decimalOffset
address me
error OdosSwapFailed()
error CollateralTransferFailed()
error TokenTransferFailed()
event Zapped(address user, uint256 collateralAmount, uint256 zaiAmount, uint256 newStakedAmount)
constructor(address _staking) internal
Initializes the contract with the required contracts
function _sweep(contract IERC20 token) internal