0 txs
49 calls
constructor
constructor()
functions
balanceOf
viewfunction balanceOf(address owner) view returns (uint256)
collateralCapacity
viewfunction collateralCapacity() view returns (uint256)
getApproved
viewfunction getApproved(uint256 tokenId) view returns (address)
getCollateralValue
viewfunction getCollateralValue(bytes collateralData) view returns (uint256 collateralValue)
getGtConfig
viewfunction getGtConfig() view returns (tuple)
getLiquidationInfo
viewfunction getLiquidationInfo(uint256 id) view returns (bool isLiquidable, uint128 ltv, uint128 maxRepayAmt)
isApprovedForAll
viewfunction isApprovedForAll(address owner, address operator) view returns (bool)
liquidatable
viewfunction liquidatable() view returns (bool)
loanInfo
viewfunction loanInfo(uint256 id) view returns (address owner, uint128 debtAmt, bytes collateralData)
marketAddr
viewfunction marketAddr() view returns (address)
name
viewfunction name() view returns (string)
owner
viewfunction owner() view returns (address)
ownerOf
viewfunction ownerOf(uint256 tokenId) view returns (address)
previewDelivery
viewfunction previewDelivery(uint256 proportion) view returns (bytes deliveryData)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
symbol
viewfunction symbol() view returns (string)
tokenByIndex
viewfunction tokenByIndex(uint256 index) view returns (uint256)
tokenOfOwnerByIndex
viewfunction tokenOfOwnerByIndex(address owner, uint256 index) view returns (uint256)
tokenURI
viewfunction tokenURI(uint256 tokenId) view returns (string)
totalSupply
viewfunction totalSupply() view returns (uint256)
addCollateral
nonpayablefunction addCollateral(uint256 id, bytes collateralData)
approve
nonpayablefunction approve(address to, uint256 tokenId)
augmentDebt
nonpayablefunction augmentDebt(address caller, uint256 id, uint256 ftAmt)
delivery
nonpayablefunction delivery(uint256 proportion, address to) returns (bytes deliveryData)
flashRepay
nonpayablefunction flashRepay(uint256 id, bool byDebtToken, bytes callbackData)
initialize
nonpayablefunction initialize(string name, string symbol, tuple config_, bytes initalParams)
liquidate
nonpayablefunction liquidate(uint256 id, uint128 repayAmt, bool byDebtToken)
merge
nonpayablefunction merge(uint256[] ids) returns (uint256 newId)
mint
nonpayablefunction mint(address collateralProvider, address to, uint128 debtAmt, bytes collateralData) returns (uint256 id)
removeCollateral
nonpayablefunction removeCollateral(uint256 id, bytes collateralData)
renounceOwnership
nonpayablefunction renounceOwnership()
repay
nonpayablefunction repay(uint256 id, uint128 repayAmt, bool byDebtToken)
safeTransferFrom
nonpayablefunction safeTransferFrom(address from, address to, uint256 tokenId, bytes data)
safeTransferFrom
nonpayablefunction safeTransferFrom(address from, address to, uint256 tokenId)
setApprovalForAll
nonpayablefunction setApprovalForAll(address operator, bool approved)
setTreasurer
nonpayablefunction setTreasurer(address treasurer)
transferFrom
nonpayablefunction transferFrom(address from, address to, uint256 tokenId)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
updateConfig
nonpayablefunction updateConfig(bytes configData)
events
AddCollateral
event AddCollateral(uint256 indexed id, bytes newCollateralData)
Approval
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
ApprovalForAll
event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
AugmentDebt
event AugmentDebt(uint256 indexed id, uint256 ftAmt)
Initialized
event Initialized(uint64 version)
Liquidate
event Liquidate(uint256 indexed id, address indexed liquidator, uint128 repayAmt, bool byDebtToken, bytes cToLiquidator, bytes cToTreasurer, bytes remainningC)
MergeGts
event MergeGts(address indexed owner, uint256 indexed newId, uint256[] ids)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
RemoveCollateral
event RemoveCollateral(uint256 indexed id, bytes newCollateralData)
Repay
event Repay(uint256 indexed id, uint256 repayAmt, bool byDebtToken)
Transfer
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
UpdateConfig
event UpdateConfig(bytes configData)
errors
AmountCanNotBeUint256Max
error AmountCanNotBeUint256Max()
AuthorizationFailed
error AuthorizationFailed(uint256 id, address caller)
CallerIsNotTheOwner
error CallerIsNotTheOwner(uint256 id)
CanNotLiquidationAfterFinalDeadline
error CanNotLiquidationAfterFinalDeadline(uint256 id, uint256 liquidationDeadline)
CanNotMergeLoanWithDiffOwner
error CanNotMergeLoanWithDiffOwner(uint256 id, address diffOwner)
CanNotTransferUintMax
error CanNotTransferUintMax()
CollateralCapacityExceeded
error CollateralCapacityExceeded()
DebtValueIsTooSmall
error DebtValueIsTooSmall(uint256 debtValue)
ERC721EnumerableForbiddenBatchMint
error ERC721EnumerableForbiddenBatchMint()
ERC721IncorrectOwner
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner)
ERC721InsufficientApproval
error ERC721InsufficientApproval(address operator, uint256 tokenId)
ERC721InvalidApprover
error ERC721InvalidApprover(address approver)
ERC721InvalidOperator
error ERC721InvalidOperator(address operator)
ERC721InvalidOwner
error ERC721InvalidOwner(address owner)
ERC721InvalidReceiver
error ERC721InvalidReceiver(address receiver)
ERC721InvalidSender
error ERC721InvalidSender(address sender)
ERC721NonexistentToken
error ERC721NonexistentToken(uint256 tokenId)
ERC721OutOfBoundsIndex
error ERC721OutOfBoundsIndex(address owner, uint256 index)
GtDoNotSupportLiquidation
error GtDoNotSupportLiquidation()
GtIsExpired
error GtIsExpired(uint256 id)
GtIsNotHealthy
error GtIsNotHealthy(uint256 id, address owner, uint128 ltv)
GtIsSafe
error GtIsSafe(uint256 id)
InvalidInitialization
error InvalidInitialization()
LiquidationLtvMustBeGreaterThanMaxLtv
error LiquidationLtvMustBeGreaterThanMaxLtv()
LtvIncreasedAfterLiquidation
error LtvIncreasedAfterLiquidation(uint256 id, uint128 ltvBefore, uint128 ltvAfter)
NotInitializing
error NotInitializing()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
RepayAmtExceedsMaxRepayAmt
error RepayAmtExceedsMaxRepayAmt(uint256 id, uint128 repayAmt, uint128 maxRepayAmt)
SafeCastOverflowedUintDowncast
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d738a2e5bfe2c0b1930575c75a61aad0d81baf93daa5af43d82803e903d91602b57fd5bf3