Erc20VaultPoolSwap

Verified contract

Active on Ethereum with 86 txns
Deployed by via 0x9979417d at 12914420
Slot
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
ERC-20
Value $0.03
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0xf7c5b9d47cdb7dee19eb15147abb08b274810a6b6c77d115c9387071839aa245
0x589e73cdc3f54a74a874d527b51ffe2f1cb480f7580967312b0ec13e84cdc338
0xceb83d8c6365fa7df30338aa75b6e918d25d0bac9f2f8c9508f640322ea4133b
0xe86c4b4ed566cc414fce83d405ea55055871a5e5e17fdfab2ddd955fa45e2fd0
0x5b85ffb8d3c78a2870738632484b5607e8849e71d8b7ed0092cc57e16e863ca9
0xc2c0c5e2941795132bc06b7933b130471d6d147a6ae9f0a7beadca4532fb93b1
0x17e85355c1f20ec1d9f303f3f78362a65115a2d0b6e5b5b7d8f0e8f44ec573f7
0xfc04cbed09d9d4068c87d157b9349a1c8337e9a872e2ba1e0f4cb56c377f14f1
0x954bdc6822e43dc59e1d3560532c67cc828b4742a43bb5c75cdfd88fbeb8b4d2
0x4f148699a9b2b4f833b1217a1684500e3cdec45fe3578a2e64857a30777da2c2

Functions
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 amountuint256 wrapperFeeview returns (uint256 feeAmountuint256 amountAfterFee)
calcUsdcOutByPool(address _pooluint256 _ppolInbool _withFeeview returns (uint256 amountOut)
calcUsdcOutByVault(address _vaultTokenInuint256 _vaultAmountInview returns (uint256 usdcAmountOut)
calcVaultOutByUsdc(address _tokenuint256 _usdcInview returns (uint256 amountOut)
calcVaultPoolOutByUsdc(address _pooluint256 _usdcInbool _withFeeview returns (uint256 amountOut)
feeAmounts(uint256view returns (uint256)
feeLevels(uint256view returns (uint256)
getVaultCalcsForSupply(address _pooluint256 piptTotalSupplyuint256 totalInputAmountview returns (struct Erc20VaultPoolSwapVaultCalc[] vcuint256 restInputuint256 totalCorrectInput)
poolTokens(addressuint256view returns (address)
vaultConfig(addressview returns (uint8 depositorLengthuint8 depositorIndexuint8 depositorTypeaddress depositoraddress lpTokenaddress curvePoolRegistry)
State-modifying
claimFee(address[] _tokens
renounceOwnership(
setFees(uint256[] _feeLevelsuint256[] _feeAmountsaddress _feePayoutaddress _feeManager
setVaultConfigs(address[] _tokensaddress[] _depositorsuint8[] _depositorTypesuint8[] _depositorAmountLengthuint8[] _depositorIndexesaddress[] _lpTokensaddress[] _curvePoolRegistries
swapErc20ToVaultPool(address _pooladdress _swapTokenuint256 _swapAmountreturns (uint256 poolAmountOut)
swapVaultPoolToErc20(address _pooluint256 _poolAmountInaddress _swapTokenreturns (uint256 erc20Out)
swapVaultToUSDC(address _fromaddress _toaddress _vaultTokenInuint256 _vaultAmountInreturns (uint256 usdcAmountOut)
transferOwnership(address newOwner
updatePools(address[] _pools
Events
ClaimFee(address indexed tokenaddress indexed payoutuint256 amount
Erc20ToVaultPoolSwap(address indexed useraddress indexed pooluint256 usdcInAmountuint256 poolOutAmount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
SetFees(address indexed senderuint256[] newFeeLevelsuint256[] newFeeAmountsaddress indexed feePayoutaddress indexed feeManager
SetVaultConfig(address indexed tokenaddress depositoruint8 depositorAmountLengthuint8 depositorIndexaddress lpTokenaddress indexed vaultRegistry
TakeFee(address indexed pooladdress indexed tokenuint256 amount
VaultPoolToErc20Swap(address indexed useraddress indexed pooluint256 poolInAmountuint256 usdcOutAmount
VaultToUsdcSwap(address indexed useraddress indexed fromaddress toaddress indexed vaultInTokenuint256 vaultInAmountuint256 usdcOutAmount
Constructor
constructor(address _usdc
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.