FundWithShareLockFlashLoansWhitelisting

Verified contract

Active on Ethereum with 80 txns
Deployed by via 0xfae56a04 at 19993001
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $129,170
ERC-20
Value $216.38
0xda8de770028334dbc62954fd99d3534c1798506486819f047de17a06d1a776fa
0xe3b40638bbd23229f51d6b296b1047376e97ba0a8bb3cf2c8d04755337b83bd3
0xd0db36f0613ae7f2b5eadd742003f2bd507d36b2d050c5d06bde37c32bddb72d
0x9368f7a55a141f35cd0d20b56aee8d5be32ec3ffc07284dff362b9f951d1156d
0x2c64347f6e56e720c8330c51bfa1850ea72c1b038ab2077f9e47c728e0f578f4
0xa198e935b1ebd523d1e5ab44565c24931ac44b14307493464c734ec87d2f15f8
0x647513a00991506b03039148a80baec27465f9e9294b79f7ded7b7565f89270c
0xaf41e9392ad0869976d0cfab3d7b614e76dae4e3b6869d64a54a60fefe50a169
0x21be5dc3272621e5b2709c846d4043727efffaf81eddb7fe80dcf51164b458cc
0xa9e8d10a44e342528075f675d4c11542c035c3e81e6114a8052772687fa5ac07

Functions
Getter at block 21102655
DOMAIN_SEPARATOR(view returns (bytes32)
0xa9eb49ce53f8582b91ca3a7606a03df851bfe98a0bbd1cb53b83e5b96f8a2495
FEES_MANAGER(view returns (address)
0xe52b0cce837f5de2d4d984a667a8117af47d4fb7
MAXIMUM_SHARE_LOCK_PERIOD(view returns (uint256)
172800
MAX_REBALANCE_DEVIATION(view returns (uint256)
100000000000000000
MINIMUM_SHARE_LOCK_PERIOD(view returns (uint256)
300
WHITELIST_TYPEHASH(view returns (bytes32)
0xb3e99edbe0a6168c4e5e3779981b987a4957b59c9d41c08b56a5fd1e774fbe13
allowedRebalanceDeviation(view returns (uint256)
20000000000000000
asset(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
automationActions(view returns (address)
0xd867ed47b3dd915dd4f82e1876a66e4642f858a0
blockExternalReceiver(view returns (bool)
false
decimals(view returns (uint8)
18
endPauseTimestamp(view returns (uint256)
1740525011
getCreditPositions(view returns (uint32[])
[1, 10004, 2, 11002]
getDebtPositions(view returns (uint32[])
[11001]
holdingPosition(view returns (uint32)
1
isPaused(view returns (bool)
false
isShutdown(view returns (bool)
false
isWhitelistEnabled(view returns (bool)
false
locked(view returns (bool)
false
name(view returns (string)
Swaap WETH Fund
owner(view returns (address)
0xd6ff6abb93ef058a474769f0d05c7fef440920f8
priceRouter(view returns (address)
0x75000538fd587d32edb092d90ea02eb6a512faf6
registry(view returns (address)
0x5c52d72694d171a2fa38ac98dfb49598f35af345
shareLockPeriod(view returns (uint256)
86400
shareSupplyCap(view returns (uint192)
6277101735386680763835789423207666416102355444464034512895
symbol(view returns (string)
swpWETH
 
totalAssets(view returns (uint256 assets)
 
totalAssetsWithdrawable(view returns (uint256 assets)
totalSupply(view returns (uint256)
64009691444243357687
 
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)
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)
userShareLockStartTime(addressview returns (uint256)
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 FundAdaptorCall[] data
collectFees(
deposit(uint256 assetsaddress receiverreturns (uint256 shares)
disableWhitelist(
enableWhitelist(
forcePositionOut(uint32 indexuint32 positionIdbool inDebtArray
initiateShutdown(
liftShutdown(
mint(uint256 sharesaddress receiverreturns (uint256 assets)
multicall(bytes[] data
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 indexuint32 expectedPositionIdbool inDebtArray
removePositionFromCatalogue(uint32 positionId
renounceOwnership(
setAutomationActions(uint256 _registryIdaddress _expectedAutomationActions
setHoldingPosition(uint32 positionId
setRebalanceDeviation(uint256 newDeviation
setShareLockPeriod(uint256 newLock
setShareSupplyCap(uint192 _newShareSupplyCap
swapPositions(uint32 index1uint32 index2bool inDebtArray
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
transferOwnership(address newOwner
whitelistDeposit(uint256 assetsaddress receiveruint256 signedAtbytes signaturereturns (uint256 shares)
whitelistMint(uint256 sharesaddress receiveruint256 signedAtbytes signaturereturns (uint256 assets)
withdraw(uint256 assetsaddress receiveraddress ownerreturns (uint256 shares)
Events
AdaptorCalled(address indexed adaptorbytes data
AdaptorCatalogueAltered(address adaptorbool inCatalogue
Approval(address indexed owneraddress indexed spenderuint256 amount
Deposit(address indexed calleraddress indexed owneruint256 assetsuint256 shares
Fund__AutomationActionsUpdated(address indexed newAutomationActions
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PositionAdded(uint32 positionuint256 index
PositionCatalogueAltered(uint32 positionIdbool inCatalogue
PositionRemoved(uint32 positionuint256 index
PositionSwapped(uint32 newPosition1uint32 newPosition2uint256 index1uint256 index2
RebalanceDeviationChanged(uint256 oldDeviationuint256 newDeviation
ShareLockingPeriodChanged(uint256 oldPerioduint256 newPeriod
ShareSupplyCapChanged(uint192 newShareSupplyCap
ShutdownChanged(bool isShutdown
Transfer(address indexed fromaddress indexed touint256 amount
WhitelistingChanged(bool isWhitelistEnabled
Withdraw(address indexed calleraddress indexed receiveraddress indexed owneruint256 assetsuint256 shares
Constructor
constructor(address _owneraddress _registryaddress _assetstring _namestring _symboluint32 _holdingPositionbytes _holdingPositionConfiguint256 _initialDeposituint192 _shareSupplyCap
Fallback and receive

This contract contains no fallback and receive objects.

Errors
Fund__AssetMismatch(address assetaddress expectedAsset
Fund__CallToAdaptorNotAllowed(address adaptor
Fund__CallerNotApprovedToRebalance(
Fund__CallerNotAuthorizedForFlashLoan(
Fund__ContractNotShutdown(
Fund__ContractShutdown(
Fund__DebtMismatch(uint32 position
Fund__ExpectedAddressDoesNotMatchActual(
Fund__ExternalInitiator(
Fund__FailedToForceOutPosition(
Fund__IncompleteWithdraw(uint256 assetsOwed
Fund__InvalidHoldingPosition(uint32 positionId
Fund__InvalidRebalanceDeviation(uint256 requesteduint256 max
Fund__InvalidShareLockPeriod(
Fund__InvalidSignature(
Fund__InvalidSignatureDeadline(
Fund__MinimumConstructorMintNotMet(
Fund__NotApprovedToDepositOnBehalf(address depositor
Fund__Paused(
Fund__PositionAlreadyUsed(uint32 position
Fund__PositionArrayFull(uint256 maxPositions
Fund__PositionNotEmpty(uint32 positionuint256 sharesRemaining
Fund__PositionNotInCatalogue(uint32 position
Fund__PositionNotUsed(uint32 position
Fund__Reentrancy(
Fund__RemovingHoldingPosition(
Fund__SettingValueToRegistryIdZeroIsProhibited(
Fund__ShareSupplyCapExceeded(
Fund__SharesAreLocked(uint256 timeSharesAreUnlockeduint256 currentBlock
Fund__TotalAssetDeviatedOutsideRange(uint256 assetsuint256 minuint256 max
Fund__TotalSharesMustRemainConstant(uint256 currentuint256 expected
Fund__WhitelistEnabled(
Fund__WrongPositionId(
Fund__ZeroAssets(
Fund__ZeroShares(