1.8k txs
3.1k calls
constructor
constructor(address ORDER_MANAGER_SINGLETON_)
functions
accretingPrincipal
viewfunction accretingPrincipal() view returns (uint256)
allowance
viewfunction allowance(address owner, address spender) view returns (uint256)
annualizedInterest
viewfunction annualizedInterest() view returns (uint256)
apr
viewfunction apr() view returns (uint256)
asset
viewfunction asset() view returns (address)
badDebtMapping
viewfunction badDebtMapping(address order) view returns (uint256)
balanceOf
viewfunction balanceOf(address account) view returns (uint256)
convertToAssets
viewfunction convertToAssets(uint256 shares) view returns (uint256)
convertToShares
viewfunction convertToShares(uint256 assets) view returns (uint256)
curator
viewfunction curator() view returns (address)
decimals
viewfunction decimals() view returns (uint8)
guardian
viewfunction guardian() view returns (address)
isAllocator
viewfunction isAllocator(address allocator) view returns (bool)
marketWhitelist
viewfunction marketWhitelist(address market) view returns (bool)
maxDeposit
viewfunction maxDeposit(address) view returns (uint256)
maxMint
viewfunction maxMint(address) view returns (uint256)
maxRedeem
viewfunction maxRedeem(address owner) view returns (uint256)
maxWithdraw
viewfunction maxWithdraw(address owner) view returns (uint256)
name
viewfunction name() view returns (string)
ORDER_MANAGER_SINGLETON
viewfunction ORDER_MANAGER_SINGLETON() view returns (address)
orderMapping
viewfunction orderMapping(address order) view returns (tuple)
owner
viewfunction owner() view returns (address)
paused
viewfunction paused() view returns (bool)
pendingGuardian
viewfunction pendingGuardian() view returns (tuple)
pendingMarkets
viewfunction pendingMarkets(address market) view returns (tuple)
pendingOwner
viewfunction pendingOwner() view returns (address)
pendingPerformanceFeeRate
viewfunction pendingPerformanceFeeRate() view returns (tuple)
pendingTimelock
viewfunction pendingTimelock() view returns (tuple)
performanceFee
viewfunction performanceFee() view returns (uint256)
performanceFeeRate
viewfunction performanceFeeRate() view returns (uint64)
previewDeposit
viewfunction previewDeposit(uint256 assets) view returns (uint256)
previewMint
viewfunction previewMint(uint256 shares) view returns (uint256)
previewRedeem
viewfunction previewRedeem(uint256 shares) view returns (uint256)
previewWithdraw
viewfunction previewWithdraw(uint256 assets) view returns (uint256)
supplyQueue
viewfunction supplyQueue(uint256 index) view returns (address)
supplyQueueLength
viewfunction supplyQueueLength() view returns (uint256)
symbol
viewfunction symbol() view returns (string)
timelock
viewfunction timelock() view returns (uint256)
totalAssets
viewfunction totalAssets() view returns (uint256)
totalFt
viewfunction totalFt() view returns (uint256)
totalSupply
viewfunction totalSupply() view returns (uint256)
withdrawQueue
viewfunction withdrawQueue(uint256 index) view returns (address)
withdrawQueueLength
viewfunction withdrawQueueLength() view returns (uint256)
acceptGuardian
nonpayablefunction acceptGuardian()
acceptMarket
nonpayablefunction acceptMarket(address market)
acceptOwnership
nonpayablefunction acceptOwnership()
acceptPerformanceFeeRate
nonpayablefunction acceptPerformanceFeeRate()
acceptTimelock
nonpayablefunction acceptTimelock()
afterSwap
nonpayablefunction afterSwap(uint256 ftReserve, uint256 xtReserve, int256 deltaFt, int256)
approve
nonpayablefunction approve(address spender, uint256 value) returns (bool)
createOrder
nonpayablefunction createOrder(address market, uint256 maxSupply, uint256 initialReserve, tuple curveCuts) returns (address order)
dealBadDebt
nonpayablefunction dealBadDebt(address collateral, uint256 badDebtAmt, address recipient, address owner) returns (uint256 shares, uint256 collateralOut)
deposit
nonpayablefunction deposit(uint256 assets, address receiver) returns (uint256)
initialize
nonpayablefunction initialize(tuple params)
mint
nonpayablefunction mint(uint256 shares, address receiver) returns (uint256)
pause
nonpayablefunction pause()
redeem
nonpayablefunction redeem(uint256 shares, address receiver, address owner) returns (uint256)
redeemOrder
nonpayablefunction redeemOrder(address order)
renounceOwnership
nonpayablefunction renounceOwnership()
revokePendingGuardian
nonpayablefunction revokePendingGuardian()
revokePendingMarket
nonpayablefunction revokePendingMarket(address market)
revokePendingPerformanceFeeRate
nonpayablefunction revokePendingPerformanceFeeRate()
revokePendingTimelock
nonpayablefunction revokePendingTimelock()
setCapacity
nonpayablefunction setCapacity(uint256 newCapacity)
setCurator
nonpayablefunction setCurator(address newCurator)
setIsAllocator
nonpayablefunction setIsAllocator(address newAllocator, bool newIsAllocator)
submitGuardian
nonpayablefunction submitGuardian(address newGuardian)
submitMarket
nonpayablefunction submitMarket(address market, bool isWhitelisted)
submitPerformanceFeeRate
nonpayablefunction submitPerformanceFeeRate(uint184 newPerformanceFeeRate)
submitTimelock
nonpayablefunction submitTimelock(uint256 newTimelock)
transfer
nonpayablefunction transfer(address to, uint256 value) returns (bool)
transferFrom
nonpayablefunction transferFrom(address from, address to, uint256 value) returns (bool)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
unpause
nonpayablefunction unpause()
updateOrders
nonpayablefunction updateOrders(address[] orders, int256[] changes, uint256[] maxSupplies, tuple[] curveCuts)
updateSupplyQueue
nonpayablefunction updateSupplyQueue(uint256[] indexes)
updateWithdrawQueue
nonpayablefunction updateWithdrawQueue(uint256[] indexes)
withdraw
nonpayablefunction withdraw(uint256 assets, address receiver, address owner) returns (uint256)
withdrawPerformanceFee
nonpayablefunction withdrawPerformanceFee(address recipient, uint256 amount)
events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)
CreateOrder
event CreateOrder(address indexed caller, address indexed market, address indexed order, uint256 maxSupply, uint256 initialReserve, ((uint256 xtReserve, uint256 liqSquare, int256 offset)[] lendCurveCuts, (uint256 xtReserve, uint256 liqSquare, int256 offset)[] borrowCurveCuts) curveCuts)
DealBadDebt
event DealBadDebt(address indexed caller, address indexed recipient, address indexed collateral, uint256 badDebt, uint256 shares, uint256 collateralOut)
Deposit
event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares)
Initialized
event Initialized(uint64 version)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
Paused
event Paused(address account)
RedeemOrder
event RedeemOrder(address indexed caller, address indexed order, uint128 ftAmt, uint128 redeemedAmt)
RevokePendingGuardian
event RevokePendingGuardian(address indexed caller)
RevokePendingMarket
event RevokePendingMarket(address indexed caller, address indexed market)
RevokePendingPerformanceFeeRate
event RevokePendingPerformanceFeeRate(address indexed caller)
RevokePendingTimelock
event RevokePendingTimelock(address indexed caller)
SetCap
event SetCap(address indexed caller, address indexed order, uint256 newCap)
SetCapacity
event SetCapacity(address indexed caller, uint256 newCapacity)
SetCurator
event SetCurator(address newCurator)
SetGuardian
event SetGuardian(address indexed caller, address newGuardian)
SetIsAllocator
event SetIsAllocator(address indexed allocator, bool newIsAllocator)
SetMarketWhitelist
event SetMarketWhitelist(address indexed caller, address indexed market, bool isWhitelisted)
SetPerformanceFeeRate
event SetPerformanceFeeRate(address indexed caller, uint256 newPerformanceFeeRate)
SetTimelock
event SetTimelock(address indexed caller, uint256 newTimelock)
SubmitGuardian
event SubmitGuardian(address newGuardian, uint64 validAt)
SubmitMarketToWhitelist
event SubmitMarketToWhitelist(address indexed market, uint64 validAt)
SubmitPerformanceFeeRate
event SubmitPerformanceFeeRate(uint256 newPerformanceFeeRate, uint64 validAt)
SubmitTimelock
event SubmitTimelock(uint256 newTimelock, uint64 validAt)
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)
Unpaused
event Unpaused(address account)
UpdateOrder
event UpdateOrder(address indexed caller, address indexed order, int256 changes, uint256 maxSupply, ((uint256 xtReserve, uint256 liqSquare, int256 offset)[] lendCurveCuts, (uint256 xtReserve, uint256 liqSquare, int256 offset)[] borrowCurveCuts) curveCuts)
UpdateSupplyQueue
event UpdateSupplyQueue(address indexed caller, address[] newSupplyQueue)
UpdateWithdrawQueue
event UpdateWithdrawQueue(address indexed caller, address[] newWithdrawQueue)
Withdraw
event Withdraw(address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)
WithdrawPerformanceFee
event WithdrawPerformanceFee(address indexed caller, address indexed recipient, uint256 amount)
errors
AboveMaxTimelock
error AboveMaxTimelock()
AlreadyPending
error AlreadyPending()
AlreadySet
error AlreadySet()
BelowMinTimelock
error BelowMinTimelock()
CanNotTransferUintMax
error CanNotTransferUintMax()
CapacityCannotLessThanUsed
error CapacityCannotLessThanUsed()
CapacityCannotSetToZero
error CapacityCannotSetToZero()
DuplicateOrder
error DuplicateOrder(address orderAddress)
EnforcedPause
error EnforcedPause()
ERC20InsufficientAllowance
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed)
ERC20InsufficientBalance
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed)
ERC20InvalidApprover
error ERC20InvalidApprover(address approver)
ERC20InvalidReceiver
error ERC20InvalidReceiver(address receiver)
ERC20InvalidSender
error ERC20InvalidSender(address sender)
ERC20InvalidSpender
error ERC20InvalidSpender(address spender)
ERC4626ExceededMaxDeposit
error ERC4626ExceededMaxDeposit(address receiver, uint256 assets, uint256 max)
ERC4626ExceededMaxMint
error ERC4626ExceededMaxMint(address receiver, uint256 shares, uint256 max)
ERC4626ExceededMaxRedeem
error ERC4626ExceededMaxRedeem(address owner, uint256 shares, uint256 max)
ERC4626ExceededMaxWithdraw
error ERC4626ExceededMaxWithdraw(address owner, uint256 assets, uint256 max)
ExpectedPause
error ExpectedPause()
InconsistentAsset
error InconsistentAsset()
InsufficientFunds
error InsufficientFunds(uint256 maxWithdraw, uint256 expectedWithdraw)
InvalidImplementation
error InvalidImplementation()
InvalidInitialization
error InvalidInitialization()
LockedFtGreaterThanTotalFt
error LockedFtGreaterThanTotalFt()
MarketNotWhitelisted
error MarketNotWhitelisted()
MaxQueueLengthExceeded
error MaxQueueLengthExceeded()
NoBadDebt
error NoBadDebt(address collateral)
NoPendingValue
error NoPendingValue()
NotAllocatorRole
error NotAllocatorRole()
NotCuratorRole
error NotCuratorRole()
NotGuardianRole
error NotGuardianRole()
NotInitializing
error NotInitializing()
OnlyProxy
error OnlyProxy()
OrderHasNegativeInterest
error OrderHasNegativeInterest()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
PerformanceFeeRateExceeded
error PerformanceFeeRateExceeded()
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeCastOverflowedUintDowncast
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
SupplyQueueLengthMismatch
error SupplyQueueLengthMismatch()
TimelockNotElapsed
error TimelockNotElapsed()
UnauthorizedOrder
error UnauthorizedOrder(address orderAddress)
WithdrawQueueLengthMismatch
error WithdrawQueueLengthMismatch()
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d736ac78b7d787b5ddde1b342a1346fb545acf44e015af43d82803e903d91602b57fd5bf3