CellarWithOracleWithBalancerFlashLoans

Verified contract

Active on Ethereum with 440 txns
Deployed by via 0x432fbc0a at 18893124
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
ERC-20
Value $40,633.3
ERC-20
Value $11,471.67
ERC-20
Value $2.07
ERC-20
Value $0.02
0x1a697575975055b4b8506cd1761fcf221f08798ad6049e60cecd9d569aff7432
0x34e1c546e4e2eb178eb8101e0011b3df5714ed4a06f73510a093b07504706221
0x22ff20519c96e4bf7352813514ead90947fd211c2a939f54cea7ed14a3ab951c
0xf6ab00234b46666ff8094ff4f2955542be7caedc3cd3b5095b1cc4eecb9ec9b5
0x43288fcc761461cbd3e5fb6ba56f20f9df52faff51229591130c50598b24a8ce
0xe5e6b09185cc0751316a4339dff6239a8550f5280399c6fa8c9c516b64a4285e
0x1d2c4b72a69e494ca5f28bcd8db1a7006587f73f030b358bba0a2300518e369f
0x2f275ee904a82a5b75a35fb6687e226b8e5e1cd47c01c9b52fdbde68403e4fcf
0x1c72c71790a31f9b0903f7839f2c6f00a2deb60d83ce0afa6e5772b5a6fbd250
0xc3d85212054cf7c67d4fcb892496f357f0aa15e3ae171d89a7ee56c5267abf53

Functions
Getter at block 21316519
DOMAIN_SEPARATOR(view returns (bytes32)
0x0db495b8b545400a69ccfe667b6a8e41b6811f86b197fb558ec3411ef566e40e
GRAVITY_BRIDGE_REGISTRY_SLOT(view returns (uint256)
0
MAX_FEE_CUT(view returns (uint64)
1000000000000000000
MAX_PLATFORM_FEE(view returns (uint64)
200000000000000000
MAX_POSITIONS(view returns (uint256)
32
MAX_REBALANCE_DEVIATION(view returns (uint64)
100000000000000000
ORACLE_DECIMALS(view returns (uint8)
18
PRICE_ROUTER_REGISTRY_SLOT(view returns (uint256)
2
allowedRebalanceDeviation(view returns (uint256)
3000000000000000
asset(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
automationActions(view returns (address)
0x0000000000000000000000000000000000000000
balancerVault(view returns (address)
0xba12222222228d8ba445958a75a0704d566bf2c8
blockExternalReceiver(view returns (bool)
false
decimals(view returns (uint8)
6
feeData(view returns (uint64 strategistPlatformCutuint64 platformFeeuint64 lastAccrualaddress strategistPayoutAddress)
(strategistPlatformCut=850000000000000000, platformFee=10000000000000000, lastAccrual=0, strategistPayoutAddress=0xa9962a5bfbea6918e958dee0647e99fd7863b95a)
getCreditPositions(view returns (uint32[])
[3, 13, 6500001, 6000001, 2000001, 500001]
getDebtPositions(view returns (uint32[])
[]
holdingPosition(view returns (uint32)
3
ignorePause(view returns (bool)
false
isPaused(view returns (bool)
false
isShutdown(view returns (bool)
false
locked(view returns (bool)
false
name(view returns (string)
Yield Maxi USD
owner(view returns (address)
0x69592e6f9d21989a043646fe8225da2600e5a0f7
priceRouter(view returns (address)
0xa1a0bc3d59e4ee5840c9530e49bdc2d1f88aaf92
registry(view returns (address)
0xeed68c267e9313a6ed6ee08de08c9f68dee44476
sharePriceOracle(view returns (address)
0x837412832eb4b4741b86a358493ed26be16f8a9a
shareSupplyCap(view returns (uint192)
6277101735386680763835789423207666416102355444464034512895
symbol(view returns (string)
YieldMaxiUSD
 
totalAssets(view returns (uint256 assets)
 
totalAssetsWithdrawable(view returns (uint256 assets)
totalSupply(view returns (uint256)
144809288583
 
viewPositionBalances(view returns (address[] assetsuint256[] balancesbool[] isDebt)
Read-only
adaptorCatalogue(addressview returns (bool)
allowance(addressaddressview returns (uint256)
balanceOf(addressview returns (uint256)
convertToAssets(uint256 sharesview returns (uint256 assets)
convertToShares(uint256 assetsview returns (uint256 shares)
creditPositions(uint256view returns (uint32)
debtPositions(uint256view returns (uint32)
getPositionData(uint32view returns (address adaptorbool isDebtbytes adaptorDatabytes configurationData)
isPositionUsed(uint256view returns (bool)
maxDeposit(addressview returns (uint256)
maxMint(addressview returns (uint256)
maxRedeem(address ownerview returns (uint256)
maxWithdraw(address ownerview returns (uint256)
nonces(addressview returns (uint256)
positionCatalogue(uint32view returns (bool)
previewDeposit(uint256 assetsview returns (uint256 shares)
previewMint(uint256 sharesview returns (uint256 assets)
previewRedeem(uint256 sharesview returns (uint256 assets)
previewWithdraw(uint256 assetsview returns (uint256 shares)
State-modifying
addAdaptorToCatalogue(address adaptor
addPosition(uint32 indexuint32 positionIdbytes configurationDatabool inDebtArray
addPositionToCatalogue(uint32 positionId
approve(address spenderuint256 amountreturns (bool)
cachePriceRouter(bool checkTotalAssetsuint16 allowableRangeaddress expectedPriceRouter
callOnAdaptor(struct CellarAdaptorCall[] data
decreaseShareSupplyCap(uint192 _newShareSupplyCap
deposit(uint256 assetsaddress receiverreturns (uint256 shares)
forcePositionOut(uint32 indexuint32 positionIdbool inDebtArray
increaseShareSupplyCap(uint192 _newShareSupplyCap
initiateShutdown(
liftShutdown(
mint(uint256 sharesaddress receiverreturns (uint256 assets)
multicall(bytes[] data
onERC721Received(addressaddressuint256bytesreturns (bytes4)
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
receiveFlashLoan(address[] tokensuint256[] amountsuint256[] feeAmountsbytes userData
redeem(uint256 sharesaddress receiveraddress ownerreturns (uint256 assets)
removeAdaptorFromCatalogue(address adaptor
removePosition(uint32 indexbool inDebtArray
removePositionFromCatalogue(uint32 positionId
setAutomationActions(uint256 _registryIdaddress _expectedAutomationActions
setHoldingPosition(uint32 positionId
setRebalanceDeviation(uint256 newDeviation
setSharePriceOracle(uint256 _registryIdaddress _sharePriceOracle
setStrategistPayoutAddress(address payout
setStrategistPlatformCut(uint64 cut
swapPositions(uint32 index1uint32 index2bool inDebtArray
toggleIgnorePause(
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
transferOwnership(address newOwner
withdraw(uint256 assetsaddress receiveraddress ownerreturns (uint256 shares)
Events
AdaptorCalled(address adaptorbytes data
AdaptorCatalogueAltered(address adaptorbool inCatalogue
Approval(address indexed owneraddress indexed spenderuint256 amount
Cellar__AutomationActionsUpdated(address newAutomationActions
Deposit(address indexed calleraddress indexed owneruint256 assetsuint256 shares
OwnershipTransferred(address indexed useraddress indexed newOwner
PositionAdded(uint32 positionuint256 index
PositionCatalogueAltered(uint32 positionIdbool inCatalogue
PositionRemoved(uint32 positionuint256 index
PositionSwapped(uint32 newPosition1uint32 newPosition2uint256 index1uint256 index2
RebalanceDeviationChanged(uint256 oldDeviationuint256 newDeviation
SharePriceOracleUpdated(address newOracle
ShutdownChanged(bool isShutdown
StrategistPayoutAddressChanged(address oldPayoutAddressaddress newPayoutAddress
StrategistPlatformCutChanged(uint64 oldPlatformCutuint64 newPlatformCut
Transfer(address indexed fromaddress indexed touint256 amount
Withdraw(address indexed calleraddress indexed receiveraddress indexed owneruint256 assetsuint256 shares
Constructor
constructor(address _owneraddress _registryaddress _assetstring _namestring _symboluint32 _holdingPositionbytes _holdingPositionConfiguint256 _initialDeposituint64 _strategistPlatformCutuint192 _shareSupplyCapaddress _balancerVault
Fallback and receive

This contract contains no fallback and receive objects.

Errors
Cellar__AssetMismatch(address assetaddress expectedAsset
Cellar__CallToAdaptorNotAllowed(address adaptor
Cellar__CallerNotApprovedToRebalance(
Cellar__CallerNotBalancerVault(
Cellar__ContractNotShutdown(
Cellar__ContractShutdown(
Cellar__DebtMismatch(uint32 position
Cellar__ExpectedAddressDoesNotMatchActual(
Cellar__ExternalInitiator(
Cellar__FailedToForceOutPosition(
Cellar__IlliquidWithdraw(address illiquidPosition
Cellar__IncompleteWithdraw(uint256 assetsOwed
Cellar__InvalidFee(
Cellar__InvalidFeeCut(
Cellar__InvalidHoldingPosition(uint32 positionId
Cellar__InvalidRebalanceDeviation(uint256 requesteduint256 max
Cellar__InvalidShareSupplyCap(
Cellar__MinimumConstructorMintNotMet(
Cellar__OracleFailure(
Cellar__Paused(
Cellar__PositionAlreadyUsed(uint32 position
Cellar__PositionArrayFull(uint256 maxPositions
Cellar__PositionNotEmpty(uint32 positionuint256 sharesRemaining
Cellar__PositionNotInCatalogue(uint32 position
Cellar__PositionNotUsed(uint32 position
Cellar__RemovingHoldingPosition(
Cellar__SettingValueToRegistryIdZeroIsProhibited(
Cellar__ShareSupplyCapExceeded(
Cellar__TotalAssetDeviatedOutsideRange(uint256 assetsuint256 minuint256 max
Cellar__TotalSharesMustRemainConstant(uint256 currentuint256 expected
Cellar__ZeroAssets(
Cellar__ZeroShares(