0 txs
9 calls
constructor
constructor(address MINTABLE_ERC20_IMPLEMENT_, address TERMMAX_ORDER_IMPLEMENT_)
functions
config
viewfunction config() view returns (tuple)
mintGtFeeRatio
viewfunction mintGtFeeRatio() view returns (uint256)
owner
viewfunction owner() view returns (address)
pendingOwner
viewfunction pendingOwner() view returns (address)
previewRedeem
viewfunction previewRedeem(uint256 ftAmount) view returns (uint256 debtTokenAmt, bytes deliveryData)
tokens
viewfunction tokens() view returns (address, address, address, address, address)
acceptOwnership
nonpayablefunction acceptOwnership()
burn
nonpayablefunction burn(address recipient, uint256 debtTokenAmt)
createOrder
nonpayablefunction createOrder(address maker, uint256 maxXtReserve, address swapTrigger, tuple curveCuts) returns (address order)
initialize
nonpayablefunction initialize(tuple params)
issueFt
nonpayablefunction issueFt(address recipient, uint128 debt, bytes collateralData) returns (uint256 gtId, uint128 ftOutAmt)
issueFtByExistedGt
nonpayablefunction issueFtByExistedGt(address recipient, uint128 debt, uint256 gtId) returns (uint128 ftOutAmt)
leverageByXt
nonpayablefunction leverageByXt(address recipient, uint128 xtAmt, bytes callbackData) returns (uint256 gtId)
mint
nonpayablefunction mint(address recipient, uint256 debtTokenAmt)
redeem
nonpayablefunction redeem(uint256 ftAmount, address recipient) returns (uint256, bytes)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
updateGtConfig
nonpayablefunction updateGtConfig(bytes configData)
updateMarketConfig
nonpayablefunction updateMarketConfig(tuple newConfig)
updateOrderFeeRate
nonpayablefunction updateOrderFeeRate(address order, tuple newFeeConfig)
events
Burn
event Burn(address indexed caller, address indexed receiver, uint256 amount)
CreateOrder
event CreateOrder(address indexed maker, address indexed order)
Initialized
event Initialized(uint64 version)
IssueFt
event IssueFt(address indexed caller, address indexed recipient, uint256 indexed gtId, uint128 debtAmt, uint128 ftAmt, uint128 fee, bytes collateralData)
IssueFtByExistedGt
event IssueFtByExistedGt(address indexed caller, address indexed recipient, uint256 indexed gtId, uint128 debtAmt, uint128 ftAmt, uint128 issueFee)
LeverageByXt
event LeverageByXt(address indexed loanReceiver, address indexed gtReceiver, uint256 indexed gtId, uint128 debtAmt, uint256 xtAmt, uint128 fee, bytes collateralData)
MarketInitialized
event MarketInitialized(address indexed collateral, address indexed underlying, uint64 maturity, address ft, address xt, address gt)
Mint
event Mint(address indexed caller, address indexed receiver, uint256 amount)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
Redeem
event Redeem(address indexed caller, address indexed recipient, uint128 proportion, uint128 underlyingAmt, bytes deliveryData)
UpdateMarketConfig
event UpdateMarketConfig((address treasurer, uint64 maturity, (uint32 lendTakerFeeRatio, uint32 lendMakerFeeRatio, uint32 borrowTakerFeeRatio, uint32 borrowMakerFeeRatio, uint32 mintGtFeeRatio, uint32 mintGtFeeRef) feeConfig) config)
errors
CanNotRedeemBeforeFinalLiquidationDeadline
error CanNotRedeemBeforeFinalLiquidationDeadline(uint256 liquidationDeadline)
CanNotTransferUintMax
error CanNotTransferUintMax()
CollateralCanNotEqualUnderlyinng
error CollateralCanNotEqualUnderlyinng()
FailedDeployment
error FailedDeployment()
FeeTooHigh
error FeeTooHigh()
InsufficientBalance
error InsufficientBalance(uint256 balance, uint256 needed)
InvalidInitialization
error InvalidInitialization()
InvalidMaturity
error InvalidMaturity()
NotInitializing
error NotInitializing()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeCastOverflowedUintDowncast
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
TermIsNotOpen
error TermIsNotOpen()
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d73883192efdd5a3417b2c0a14b25f7536b2018f8535af43d82803e903d91602b57fd5bf3