0 txs
41 calls
constructor
constructor()
functions
apr
viewfunction apr() view returns (uint256 lendApr_, uint256 borrowApr_)
maker
viewfunction maker() view returns (address)
market
viewfunction market() view returns (address)
orderConfig
viewfunction orderConfig() view returns (tuple)
owner
viewfunction owner() view returns (address)
paused
viewfunction paused() view returns (bool)
pendingOwner
viewfunction pendingOwner() view returns (address)
tokenReserves
viewfunction tokenReserves() view returns (uint256, uint256)
acceptOwnership
nonpayablefunction acceptOwnership()
initialize
nonpayablefunction initialize(address maker_, address[3] tokens, address gt_, uint256 maxXtReserve_, address swapTrigger, tuple curveCuts_, tuple marketConfig)
pause
nonpayablefunction pause()
renounceOwnership
nonpayablefunction renounceOwnership()
swapExactTokenToToken
nonpayablefunction swapExactTokenToToken(address tokenIn, address tokenOut, address recipient, uint128 tokenAmtIn, uint128 minTokenOut, uint256 deadline) returns (uint256 netTokenOut)
swapTokenToExactToken
nonpayablefunction swapTokenToExactToken(address tokenIn, address tokenOut, address recipient, uint128 tokenAmtOut, uint128 maxTokenIn, uint256 deadline) returns (uint256 netTokenIn)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
unpause
nonpayablefunction unpause()
updateFeeConfig
nonpayablefunction updateFeeConfig(tuple newFeeConfig)
updateOrder
nonpayablefunction updateOrder(tuple newOrderConfig, int256 ftChangeAmt, int256 xtChangeAmt)
withdrawAssets
nonpayablefunction withdrawAssets(address token, address recipient, uint256 amount)
events
Initialized
event Initialized(uint64 version)
MakerOwnershipTransferred
event MakerOwnershipTransferred(address oldMaker, address newMaker)
OrderInitialized
event OrderInitialized(address indexed market, address indexed maker, uint256 maxXtReserve, address swapTrigger, ((uint256 xtReserve, uint256 liqSquare, int256 offset)[] lendCurveCuts, (uint256 xtReserve, uint256 liqSquare, int256 offset)[] borrowCurveCuts) curveCuts)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
Paused
event Paused(address account)
SwapExactTokenToToken
event SwapExactTokenToToken(address indexed tokenIn, address indexed tokenOut, address caller, address recipient, uint128 tokenAmtIn, uint128 netTokenOut, uint128 feeAmt)
SwapTokenToExactToken
event SwapTokenToExactToken(address indexed tokenIn, address indexed tokenOut, address caller, address recipient, uint128 tokenAmtOut, uint128 netTokenIn, uint128 feeAmt)
Unpaused
event Unpaused(address account)
UpdateFeeConfig
event UpdateFeeConfig((uint32 lendTakerFeeRatio, uint32 lendMakerFeeRatio, uint32 borrowTakerFeeRatio, uint32 borrowMakerFeeRatio, uint32 mintGtFeeRatio, uint32 mintGtFeeRef) feeConfig)
UpdateOrder
event UpdateOrder(((uint256 xtReserve, uint256 liqSquare, int256 offset)[] lendCurveCuts, (uint256 xtReserve, uint256 liqSquare, int256 offset)[] borrowCurveCuts) curveCuts, int256 ftChangeAmt, int256 xtChangeAmt, uint256 gtId, uint256 maxXtReserve, address swapTrigger)
WithdrawAssets
event WithdrawAssets(address indexed token, address indexed caller, address indexed recipient, uint256 amount)
errors
BorrowIsNotAllowed
error BorrowIsNotAllowed()
CanNotRedeemBeforeFinalLiquidationDeadline
error CanNotRedeemBeforeFinalLiquidationDeadline(uint256 liquidationDeadline)
CanNotTransferUintMax
error CanNotTransferUintMax()
CantNotIssueFtWithoutGt
error CantNotIssueFtWithoutGt()
CantNotSwapToken
error CantNotSwapToken(address tokenIn, address tokenOut)
CantSwapSameToken
error CantSwapSameToken()
DeadlineExpired
error DeadlineExpired()
EnforcedPause
error EnforcedPause()
EvacuationIsActived
error EvacuationIsActived()
EvacuationIsNotActived
error EvacuationIsNotActived()
ExpectedPause
error ExpectedPause()
GtNotApproved
error GtNotApproved(uint256 gtId)
InsufficientLiquidity
error InsufficientLiquidity()
InvalidCurveCuts
error InvalidCurveCuts()
InvalidInitialization
error InvalidInitialization()
LendIsNotAllowed
error LendIsNotAllowed()
NotEnoughFtOrXtToWithdraw
error NotEnoughFtOrXtToWithdraw()
NotInitializing
error NotInitializing()
OnlyMarket
error OnlyMarket()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeCastOverflowedIntToUint
error SafeCastOverflowedIntToUint(int256 value)
SafeCastOverflowedUintDowncast
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value)
SafeCastOverflowedUintToInt
error SafeCastOverflowedUintToInt(uint256 value)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
TermIsNotOpen
error TermIsNotOpen()
UnexpectedAmount
error UnexpectedAmount(uint256 expectedAmt, uint256 actualAmt)
XtReserveTooHigh
error XtReserveTooHigh()
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d73954529f8f103bde464fc6d02a94cd40c5bd322d15af43d82803e903d91602b57fd5bf3