yearn.finance
Search…
zap
Contract
ABI
Address
Uniswap_ETH_CDAIZAP
JSON

ZAP Interface

IUniSwap_ETH_CDAIZap.sol
1
// Solidity Interface
2
3
interface IUniSwap_ETH_CDAIZap {
4
function getExpectedReturn(uint256 eth) external view returns (uint256);
5
function LetsInvest(address _towhomtoissue, uint256 _minReturn) external payable returns (uint);
6
function getUniswapExchangeContractAddress() external view returns (address);
7
function Redeem(address payable _towhomtosend, uint256 _amount) external stopInEmergency returns (uint);
8
function getMaxTokens(address _UniSwapExchangeContractAddress, IERC20 _ERC20TokenAddress, uint _value) external view returns (uint);
9
function getEthBalance(address _UniSwapExchangeContractAddress) external view returns (uint);
10
function getTokenReserves(address _UniSwapExchangeContractAddress, IERC20 _ERC20TokenAddress) external view returns (uint);
11
function getTotalShares(address _UniSwapExchangeContractAddress) external view returns (uint);
12
function getReturn(address _UniSwapExchangeContractAddress, IERC20 _ERC20TokenAddress, uint _value) external view returns (uint, uint, uint);
13
function calcReturnETHFromShares(uint _value) external view returns (uint, uint, uint);
14
function uniBalanceOf(address _owner) external view returns (uint);
15
function cBalanceOf(address _owner) external view returns (uint);
16
function calcReturnSharesFromETH(uint _value) external view returns (uint);
17
function getTokenToEthOutputPrice(uint _tokens) external view returns (uint);
18
function getSharesReturn(address _UniSwapExchangeContractAddress, IERC20 _ERC20TokenAddress, uint _ethValue) external view returns (uint);
19
}
Copied!
Last modified 7mo ago
Copy link