Verified contractExactBUSL-1.1
PaprController
Address0x3b29c19ff2fcea0ff98d0ef5b184354d74ea74b0
- Balance
0 ETH
- Transactions
311
- Compiler
solc 0.8.17
- Same code
Only this contract
Details
- Compiler
- solc 0.8.17+commit.8df45f5f
- Language
- solidity
- Optimization
- Yes, 20 runs
- EVM version
- london
- License
- BUSL-1.1
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 16,592,385
- Creation transaction
- 0xf76853e8ea…abf1d9269e
Read25
- MAX_PER_SECOND_PRICE_CHANGE() → (uint256)
- auctionCreatorDiscountPercentWad() → (uint256)
- auctionCurrentPrice(tuple) → (uint256)
- auctionID(tuple) → (uint256)
- auctionStartTime(uint256) → (uint256)
- auctionState(uint256) → (uint96,address)
- cachedPriceForAsset(address) → (uint40,uint216)
- collateralOwner(address,uint256) → (address)
- fundingPeriod() → (uint256)
- isAllowed(address) → (bool)
- lastAuctionStartPrice(address) → (uint40,uint216)
- lastUpdated() → (uint256)
- liquidationAuctionMinSpacing() → (uint256)
- mark() → (uint256)
- maxDebt(uint256) → (uint256)
- maxLTV() → (uint256)
- newTarget() → (uint256)
- oracleSigner() → (address)
- owner() → (address)
- papr() → (address)
- pendingOwner() → (address)
- pool() → (address)
- target() → (uint256)
- underlying() → (address)
- vaultInfo(address,address) → (tuple)
Write22
- acceptOwnership()
- acceptProposedCollateral(address)
- addCollateral(tuple[])
- buyAndReduceDebt(address,address,tuple) → (uint256)
- cancelProposedCollateral(address)
- increaseDebt(address,address,uint256,tuple)
- increaseDebtAndSell(address,address,tuple,tuple) → (uint256)
- multicall(bytes[]) → (bytes[])
- onERC721Received(address,address,uint256,bytes) → (bytes4)
- proposeAllowedCollateral(address)
- purchaseLiquidationAuctionNFT(tuple,uint256,address,tuple)
- reduceDebt(address,address,uint256)
- removeAllowedCollateral(address[])
- removeCollateral(address,tuple[],tuple)
- renounceOwnership()
- setFundingPeriod(uint256)
- setPool(address)
- startLiquidationAuction(address,tuple,tuple) → (tuple)
- transferOwnership(address)
- underwritePriceForCollateral(address,uint8,tuple,bool) → (uint256)
- uniswapV3SwapCallback(int256,int256,bytes)
- updateTarget() → (uint256)
Events17
- AddCollateral(address,address,uint256)
- AllowCollateral(address,bool)
- CancelProposedAllowedCollateral(address)
- EndAuction(uint256,uint256)
- IncreaseDebt(address,address,uint256)
- OwnershipTransferStarted(address,address)
- OwnershipTransferred(address,address)
- ProposeAllowedCollateral(address)
- ReduceDebt(address,address,uint256)
- RemoveCollateral(address,address,uint256)
- SetAuctionCreatorDiscount(uint256)
- SetFundingPeriod(uint256)
- SetPool(address)
- StartAuction(uint256,uint256,address,address,uint256,uint256,uint256,address)
- UpdateFundingPeriod(uint256)
- UpdatePool(address)
- UpdateTarget(uint256)
Errors27
- AccountHasNoDebt()
- AlreadyInitialized()
- AssetNotProposed()
- AuctionExists()
- CollateralAddressesDoNotMatch()
- DebtAmountExceedsUint184()
- ExceedsMaxDebt(uint256,uint256)
- FundingPeriodTooLong()
- FundingPeriodTooShort()
- IncorrectOracleSigner()
- InsufficientPayment(uint256,uint256)
- InvalidAuction()
- InvalidCollateral()
- InvalidCollateralAccountPair()
- InvalidUniswapV3Pool()
- LiquidationsLocked()
- MaxPriceTooLow(uint256,uint256)
- MinAuctionSpacing()
- NotLiquidatable()
- OnlyCollateralOwner()
- OracleMessageTimestampInvalid()
- PassedDeadline(uint256,uint256)
- PoolTokensDoNotMatch()
- ProposalPeriodNotComplete()
- TooLittleOut(uint256,uint256)
- WrongCurrencyFromOracleMessage()
- WrongIdentifierFromOracleMessage()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "symbol",
"type": "string",
"internalType": "string"
},
{
"name": "_maxLTV",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "underlying",
"type": "address",
"internalType": "contract ERC20"
},
{
"name": "oracleSigner",
"type": "address",
"internalType": "address"
},
{
"name": "startingCollateral",
"type": "address[]",
"internalType": "contract ERC721[]"
}
],
"stateMutability": "nonpayable"
},
{
"name": "AccountHasNoDebt",
"type": "error",
"inputs": []
},
{
"name": "AlreadyInitialized",
"type": "error",
"inputs": []
},
{
"name": "AssetNotProposed",
"type": "error",
"inputs": []
},
{
"name": "AuctionExists",
"type": "error",
"inputs": []
},
{
"name": "CollateralAddressesDoNotMatch",
"type": "error",
"inputs": []
},
{
"name": "DebtAmountExceedsUint184",
"type": "error",
"inputs": []
},
{
"name": "ExceedsMaxDebt",
"type": "error",
"inputs": [
{
"name": "vaultDebt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxDebt",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "FundingPeriodTooLong",
"type": "error",
"inputs": []
},
{
"name": "FundingPeriodTooShort",
"type": "error",
"inputs": []
},
{
"name": "IncorrectOracleSigner",
"type": "error",
"inputs": []
},
{
"name": "InsufficientPayment",
"type": "error",
"inputs": [
{
"name": "received",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expected",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "InvalidAuction",
"type": "error",
"inputs": []
},
{
"name": "InvalidCollateral",
"type": "error",
"inputs": []
},
{
"name": "InvalidCollateralAccountPair",
"type": "error",
"inputs": []
},
{
"name": "InvalidUniswapV3Pool",
"type": "error",
"inputs": []
},
{
"name": "LiquidationsLocked",
"type": "error",
"inputs": []
},
{
"name": "MaxPriceTooLow",
"type": "error",
"inputs": [
{
"name": "currentPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxPrice",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "MinAuctionSpacing",
"type": "error",
"inputs": []
},
{
"name": "NotLiquidatable",
"type": "error",
"inputs": []
},
{
"name": "OnlyCollateralOwner",
"type": "error",
"inputs": []
},
{
"name": "OracleMessageTimestampInvalid",
"type": "error",
"inputs": []
},
{
"name": "PassedDeadline",
"type": "error",
"inputs": [
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "currentTimestamp",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "PoolTokensDoNotMatch",
"type": "error",
"inputs": []
},
{
"name": "ProposalPeriodNotComplete",
"type": "error",
"inputs": []
},
{
"name": "TooLittleOut",
"type": "error",
"inputs": [
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "actualOut",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "WrongCurrencyFromOracleMessage",
"type": "error",
"inputs": []
},
{
"name": "WrongIdentifierFromOracleMessage",
"type": "error",
"inputs": []
},
{
"name": "AddCollateral",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "collateralAddress",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "AllowCollateral",
"type": "event",
"inputs": [
{
"name": "collateral",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
},
{
"name": "isAllowed",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "CancelProposedAllowedCollateral",
"type": "event",
"inputs": [
{
"name": "asset",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
}
],
"anonymous": false
},
{
"name": "EndAuction",
"type": "event",
"inputs": [
{
"name": "auctionID",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "price",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "IncreaseDebt",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "collateralAddress",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferStarted",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferred",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "ProposeAllowedCollateral",
"type": "event",
"inputs": [
{
"name": "asset",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
}
],
"anonymous": false
},
{
"name": "ReduceDebt",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "collateralAddress",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RemoveCollateral",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "collateralAddress",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "SetAuctionCreatorDiscount",
"type": "event",
"inputs": [
{
"name": "discount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "SetFundingPeriod",
"type": "event",
"inputs": [
{
"name": "fundingPeriod",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "SetPool",
"type": "event",
"inputs": [
{
"name": "pool",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "StartAuction",
"type": "event",
"inputs": [
{
"name": "auctionID",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "auctionAssetID",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "auctionAssetContract",
"type": "address",
"indexed": true,
"internalType": "contract ERC721"
},
{
"name": "nftOwner",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "perPeriodDecayPercentWad",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "secondsInPeriod",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "startPrice",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "paymentAsset",
"type": "address",
"indexed": false,
"internalType": "contract ERC20"
}
],
"anonymous": false
},
{
"name": "UpdateFundingPeriod",
"type": "event",
"inputs": [
{
"name": "newPeriod",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "UpdatePool",
"type": "event",
"inputs": [
{
"name": "newPool",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "UpdateTarget",
"type": "event",
"inputs": [
{
"name": "newTarget",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MAX_PER_SECOND_PRICE_CHANGE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "acceptOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "acceptProposedCollateral",
"type": "function",
"inputs": [
{
"name": "asset",
"type": "address",
"internalType": "contract ERC721"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "addCollateral",
"type": "function",
"inputs": [
{
"name": "collateralArr",
"type": "tuple[]",
"components": [
{
"name": "addr",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct IPaprController.Collateral[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "auctionCreatorDiscountPercentWad",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "auctionCurrentPrice",
"type": "function",
"inputs": [
{
"name": "auction",
"type": "tuple",
"components": [
{
"name": "nftOwner",
"type": "address",
"internalType": "address"
},
{
"name": "auctionAssetID",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "auctionAssetContract",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "perPeriodDecayPercentWad",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "secondsInPeriod",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "paymentAsset",
"type": "address",
"internalType": "contract ERC20"
}
],
"internalType": "struct INFTEDA.Auction"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "auctionID",
"type": "function",
"inputs": [
{
"name": "auction",
"type": "tuple",
"components": [
{
"name": "nftOwner",
"type": "address",
"internalType": "address"
},
{
"name": "auctionAssetID",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "auctionAssetContract",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "perPeriodDecayPercentWad",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "secondsInPeriod",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "paymentAsset",
"type": "address",
"internalType": "contract ERC20"
}
],
"internalType": "struct INFTEDA.Auction"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "pure"
},
{
"name": "auctionStartTime",
"type": "function",
"inputs": [
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "auctionState",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "startTime",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "starter",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "buyAndReduceDebt",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAsset",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "params",
"type": "tuple",
"components": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "sqrtPriceLimitX96",
"type": "uint160",
"internalType": "uint160"
},
{
"name": "swapFeeTo",
"type": "address",
"internalType": "address"
},
{
"name": "swapFeeBips",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct IPaprController.SwapParams"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "cachedPriceForAsset",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC721"
}
],
"outputs": [
{
"name": "timestamp",
"type": "uint40",
"internalType": "uint40"
},
{
"name": "price",
"type": "uint216",
"internalType": "uint216"
}
],
"stateMutability": "view"
},
{
"name": "cancelProposedCollateral",
"type": "function",
"inputs": [
{
"name": "asset",
"type": "address",
"internalType": "contract ERC721"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "collateralOwner",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "fundingPeriod",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "increaseDebt",
"type": "function",
"inputs": [
{
"name": "mintTo",
"type": "address",
"internalType": "address"
},
{
"name": "asset",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "oracleInfo",
"type": "tuple",
"components": [
{
"name": "message",
"type": "tuple",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payload",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct ReservoirOracle.Message"
},
{
"name": "sig",
"type": "tuple",
"components": [
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"internalType": "struct ReservoirOracleUnderwriter.Sig"
}
],
"internalType": "struct ReservoirOracleUnderwriter.OracleInfo"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "increaseDebtAndSell",
"type": "function",
"inputs": [
{
"name": "proceedsTo",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAsset",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "params",
"type": "tuple",
"components": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "sqrtPriceLimitX96",
"type": "uint160",
"internalType": "uint160"
},
{
"name": "swapFeeTo",
"type": "address",
"internalType": "address"
},
{
"name": "swapFeeBips",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct IPaprController.SwapParams"
},
{
"name": "oracleInfo",
"type": "tuple",
"components": [
{
"name": "message",
"type": "tuple",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payload",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct ReservoirOracle.Message"
},
{
"name": "sig",
"type": "tuple",
"components": [
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"internalType": "struct ReservoirOracleUnderwriter.Sig"
}
],
"internalType": "struct ReservoirOracleUnderwriter.OracleInfo"
}
],
"outputs": [
{
"name": "amountOut",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "isAllowed",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC721"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "lastAuctionStartPrice",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC721"
}
],
"outputs": [
{
"name": "timestamp",
"type": "uint40",
"internalType": "uint40"
},
{
"name": "price",
"type": "uint216",
"internalType": "uint216"
}
],
"stateMutability": "view"
},
{
"name": "lastUpdated",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "liquidationAuctionMinSpacing",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "mark",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "maxDebt",
"type": "function",
"inputs": [
{
"name": "totalCollateraValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "maxLTV",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "multicall",
"type": "function",
"inputs": [
{
"name": "data",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [
{
"name": "results",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"stateMutability": "payable"
},
{
"name": "newTarget",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "onERC721Received",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "_id",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "nonpayable"
},
{
"name": "oracleSigner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "papr",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC20"
}
],
"stateMutability": "view"
},
{
"name": "pendingOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pool",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "proposeAllowedCollateral",
"type": "function",
"inputs": [
{
"name": "asset",
"type": "address",
"internalType": "contract ERC721"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "purchaseLiquidationAuctionNFT",
"type": "function",
"inputs": [
{
"name": "auction",
"type": "tuple",
"components": [
{
"name": "nftOwner",
"type": "address",
"internalType": "address"
},
{
"name": "auctionAssetID",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "auctionAssetContract",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "perPeriodDecayPercentWad",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "secondsInPeriod",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "paymentAsset",
"type": "address",
"internalType": "contract ERC20"
}
],
"internalType": "struct INFTEDA.Auction"
},
{
"name": "maxPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "sendTo",
"type": "address",
"internalType": "address"
},
{
"name": "oracleInfo",
"type": "tuple",
"components": [
{
"name": "message",
"type": "tuple",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payload",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct ReservoirOracle.Message"
},
{
"name": "sig",
"type": "tuple",
"components": [
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"internalType": "struct ReservoirOracleUnderwriter.Sig"
}
],
"internalType": "struct ReservoirOracleUnderwriter.OracleInfo"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "reduceDebt",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "asset",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "removeAllowedCollateral",
"type": "function",
"inputs": [
{
"name": "assets",
"type": "address[]",
"internalType": "contract ERC721[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "removeCollateral",
"type": "function",
"inputs": [
{
"name": "sendTo",
"type": "address",
"internalType": "address"
},
{
"name": "collateralArr",
"type": "tuple[]",
"components": [
{
"name": "addr",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct IPaprController.Collateral[]"
},
{
"name": "oracleInfo",
"type": "tuple",
"components": [
{
"name": "message",
"type": "tuple",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payload",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct ReservoirOracle.Message"
},
{
"name": "sig",
"type": "tuple",
"components": [
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"internalType": "struct ReservoirOracleUnderwriter.Sig"
}
],
"internalType": "struct ReservoirOracleUnderwriter.OracleInfo"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setFundingPeriod",
"type": "function",
"inputs": [
{
"name": "_fundingPeriod",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setPool",
"type": "function",
"inputs": [
{
"name": "_pool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "startLiquidationAuction",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "tuple",
"components": [
{
"name": "addr",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct IPaprController.Collateral"
},
{
"name": "oracleInfo",
"type": "tuple",
"components": [
{
"name": "message",
"type": "tuple",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payload",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct ReservoirOracle.Message"
},
{
"name": "sig",
"type": "tuple",
"components": [
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"internalType": "struct ReservoirOracleUnderwriter.Sig"
}
],
"internalType": "struct ReservoirOracleUnderwriter.OracleInfo"
}
],
"outputs": [
{
"name": "auction",
"type": "tuple",
"components": [
{
"name": "nftOwner",
"type": "address",
"internalType": "address"
},
{
"name": "auctionAssetID",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "auctionAssetContract",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "perPeriodDecayPercentWad",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "secondsInPeriod",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "paymentAsset",
"type": "address",
"internalType": "contract ERC20"
}
],
"internalType": "struct INFTEDA.Auction"
}
],
"stateMutability": "nonpayable"
},
{
"name": "target",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "underlying",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC20"
}
],
"stateMutability": "view"
},
{
"name": "underwritePriceForCollateral",
"type": "function",
"inputs": [
{
"name": "asset",
"type": "address",
"internalType": "contract ERC721"
},
{
"name": "priceKind",
"type": "uint8",
"internalType": "enum ReservoirOracleUnderwriter.PriceKind"
},
{
"name": "oracleInfo",
"type": "tuple",
"components": [
{
"name": "message",
"type": "tuple",
"components": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payload",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"internalType": "struct ReservoirOracle.Message"
},
{
"name": "sig",
"type": "tuple",
"components": [
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"internalType": "struct ReservoirOracleUnderwriter.Sig"
}
],
"internalType": "struct ReservoirOracleUnderwriter.OracleInfo"
},
{
"name": "guard",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "uniswapV3SwapCallback",
"type": "function",
"inputs": [
{
"name": "amount0Delta",
"type": "int256",
"internalType": "int256"
},
{
"name": "amount1Delta",
"type": "int256",
"internalType": "int256"
},
{
"name": "_data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateTarget",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "nTarget",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "vaultInfo",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "asset",
"type": "address",
"internalType": "contract ERC721"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"components": [
{
"name": "count",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "auctionCount",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "latestAuctionStartTime",
"type": "uint40",
"internalType": "uint40"
},
{
"name": "debt",
"type": "uint184",
"internalType": "uint184"
}
],
"internalType": "struct IPaprController.VaultInfo"
}
],
"stateMutability": "view"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.