Erc20VaultPoolSwap
Verified contract
Active on
Ethereum with 86 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
Balances ($0.03)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
USDC | ERC-20 | 0.026449 | $0.999975 |
$0.03 | |
yvCurve-USDN | ERC-20 | 280.758251 | -- | -- | |
yvCurve-LUSD | ERC-20 | 106.588326 | -- | -- | |
yvCurve-USDP | ERC-20 | 15.665296 | -- | -- | |
yvCurve-BUSD | ERC-20 | 0.893828 | -- | -- | |
YLA | ERC-20 | 0 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19479603 | 8 months ago | | | 0 | 0.0094470750 | |
| 17348909 | a year ago | | | 0 | 0.072329168 | |
| 17176632 | 2 years ago | | | 0 | 0.19179510 | |
| 16964180 | 2 years ago | | | 0 | 0.059229874 | |
| 16940564 | 2 years ago | | | 0 | 0.12575959 | |
| 16819226 | 2 years ago | | | 0 | 0.066184290 | |
| 16804785 | 2 years ago | | | 0 | 0.21066858 | |
| 16781846 | 2 years ago | | | 0 | 0.051852996 | |
| 16775857 | 2 years ago | | | 0 | 0.060155340 | |
| 16774586 | 2 years ago | | | 0 | 0.051472355 |
ABI
ABI objects
Getter at block 21161938
feeManager() view returns (address)
0x0000000000000000000000000000000000000000
feePayout() view returns (address)
0x0000000000000000000000000000000000000000
getFeeAmounts() view returns (uint256[])
[]
getFeeLevels() view returns (uint256[])
[]
owner() view returns (address)
0xb258302c3f209491d604165549079680708581cc
usdc() view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Read-only
calcFee(uint256 amount, uint256 wrapperFee) view returns (uint256 feeAmount, uint256 amountAfterFee)
calcUsdcOutByPool(address _pool, uint256 _ppolIn, bool _withFee) view returns (uint256 amountOut)
calcUsdcOutByVault(address _vaultTokenIn, uint256 _vaultAmountIn) view returns (uint256 usdcAmountOut)
calcVaultOutByUsdc(address _token, uint256 _usdcIn) view returns (uint256 amountOut)
calcVaultPoolOutByUsdc(address _pool, uint256 _usdcIn, bool _withFee) view returns (uint256 amountOut)
feeAmounts(uint256) view returns (uint256)
feeLevels(uint256) view returns (uint256)
getVaultCalcsForSupply(address _pool, uint256 piptTotalSupply, uint256 totalInputAmount) view returns (struct Erc20VaultPoolSwapVaultCalc[] vc, uint256 restInput, uint256 totalCorrectInput)
poolTokens(address, uint256) view returns (address)
vaultConfig(address) view returns (uint8 depositorLength, uint8 depositorIndex, uint8 depositorType, address depositor, address lpToken, address curvePoolRegistry)
State-modifying
Events claimFee(address[] _tokens)
renounceOwnership()
setFees(uint256[] _feeLevels, uint256[] _feeAmounts, address _feePayout, address _feeManager)
setVaultConfigs(address[] _tokens, address[] _depositors, uint8[] _depositorTypes, uint8[] _depositorAmountLength, uint8[] _depositorIndexes, address[] _lpTokens, address[] _curvePoolRegistries)
swapErc20ToVaultPool(address _pool, address _swapToken, uint256 _swapAmount) returns (uint256 poolAmountOut)
swapVaultPoolToErc20(address _pool, uint256 _poolAmountIn, address _swapToken) returns (uint256 erc20Out)
swapVaultToUSDC(address _from, address _to, address _vaultTokenIn, uint256 _vaultAmountIn) returns (uint256 usdcAmountOut)
transferOwnership(address newOwner)
updatePools(address[] _pools)
ClaimFee(address indexed token, address indexed payout, uint256 amount)
Erc20ToVaultPoolSwap(address indexed user, address indexed pool, uint256 usdcInAmount, uint256 poolOutAmount)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SetFees(address indexed sender, uint256[] newFeeLevels, uint256[] newFeeAmounts, address indexed feePayout, address indexed feeManager)
SetVaultConfig(address indexed token, address depositor, uint8 depositorAmountLength, uint8 depositorIndex, address lpToken, address indexed vaultRegistry)
TakeFee(address indexed pool, address indexed token, uint256 amount)
VaultPoolToErc20Swap(address indexed user, address indexed pool, uint256 poolInAmount, uint256 usdcOutAmount)
VaultToUsdcSwap(address indexed user, address indexed from, address to, address indexed vaultInToken, uint256 vaultInAmount, uint256 usdcOutAmount)
constructor(address _usdc)
This contract contains no fallback and receive objects.
This contract contains no error objects.