diff --git a/abis/AjnaToken.json b/abis/AjnaToken.json index ce4a58c..b23d1e4 100644 --- a/abis/AjnaToken.json +++ b/abis/AjnaToken.json @@ -1,7 +1,11 @@ [ { "inputs": [ - { "internalType": "address", "name": "tokenReceiver_", "type": "address" } + { + "internalType": "address", + "name": "tokenReceiver_", + "type": "address" + } ], "stateMutability": "nonpayable", "type": "constructor" @@ -28,7 +32,7 @@ "type": "uint256" } ], - "name": "AjnaTokenApproval", + "name": "Approval", "type": "event" }, { @@ -103,48 +107,96 @@ "type": "uint256" } ], - "name": "AjnaTokenTransfer", + "name": "Transfer", "type": "event" }, { "inputs": [], "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } ], "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } ], "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } + { + "internalType": "address", + "name": "account", + "type": "address" + } ], "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } ], "name": "burn", "outputs": [], @@ -153,8 +205,16 @@ }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } ], "name": "burnFrom", "outputs": [], @@ -163,15 +223,31 @@ }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint32", "name": "pos", "type": "uint32" } + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint32", + "name": "pos", + "type": "uint32" + } ], "name": "checkpoints", "outputs": [ { "components": [ - { "internalType": "uint32", "name": "fromBlock", "type": "uint32" }, - { "internalType": "uint224", "name": "votes", "type": "uint224" } + { + "internalType": "uint32", + "name": "fromBlock", + "type": "uint32" + }, + { + "internalType": "uint224", + "name": "votes", + "type": "uint224" + } ], "internalType": "struct ERC20Votes.Checkpoint", "name": "", @@ -184,13 +260,23 @@ { "inputs": [], "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, + { + "internalType": "address", + "name": "spender", + "type": "address" + }, { "internalType": "uint256", "name": "subtractedValue", @@ -198,13 +284,23 @@ } ], "name": "decreaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "delegatee", "type": "address" } + { + "internalType": "address", + "name": "delegatee", + "type": "address" + } ], "name": "delegate", "outputs": [], @@ -213,12 +309,36 @@ }, { "inputs": [ - { "internalType": "address", "name": "delegatee", "type": "address" }, - { "internalType": "uint256", "name": "nonce", "type": "uint256" }, - { "internalType": "uint256", "name": "expiry", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } + { + "internalType": "address", + "name": "delegatee", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "expiry", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } ], "name": "delegateBySig", "outputs": [], @@ -227,85 +347,197 @@ }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } + { + "internalType": "address", + "name": "account", + "type": "address" + } ], "name": "delegates", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "uint256", "name": "blockNumber", "type": "uint256" } + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + } ], "name": "getPastTotalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "blockNumber", "type": "uint256" } + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + } ], "name": "getPastVotes", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } + { + "internalType": "address", + "name": "account", + "type": "address" + } ], "name": "getVotes", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" + } ], "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } + { + "internalType": "address", + "name": "owner", + "type": "address" + } ], "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } + { + "internalType": "address", + "name": "account", + "type": "address" + } ], "name": "numCheckpoints", - "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } ], "name": "permit", "outputs": [], @@ -315,48 +547,124 @@ { "inputs": [], "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } ], "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } ], "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { "internalType": "address", "name": "from_", "type": "address" }, - { "internalType": "address", "name": "to_", "type": "address" }, - { "internalType": "address", "name": "spender_", "type": "address" }, - { "internalType": "uint256", "name": "value_", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline_", "type": "uint256" }, - { "internalType": "uint8", "name": "v_", "type": "uint8" }, - { "internalType": "bytes32", "name": "r_", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s_", "type": "bytes32" } + { + "internalType": "address", + "name": "from_", + "type": "address" + }, + { + "internalType": "address", + "name": "to_", + "type": "address" + }, + { + "internalType": "address", + "name": "spender_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline_", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "v_", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r_", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s_", + "type": "bytes32" + } ], "name": "transferFromWithPermit", "outputs": [], diff --git a/abis/ERC20.json b/abis/ERC20.json index e1f61ef..d1bf1cf 100644 --- a/abis/ERC20.json +++ b/abis/ERC20.json @@ -1,288 +1,288 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "string", "name": "name_", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "string", "name": "symbol_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "allowance", "inputs": [ { - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "allowance", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "approve", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "approve", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "balanceOf", "inputs": [ { - "internalType": "address", "name": "account", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "balanceOf", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "decimals", + "inputs": [], "outputs": [ { - "internalType": "uint8", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "decreaseAllowance", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "subtractedValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "decreaseAllowance", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "increaseAllowance", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "addedValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "increaseAllowance", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "name", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "symbol", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "totalSupply", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transfer", "inputs": [ { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "transfer", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "transferFrom", "inputs": [ { - "internalType": "address", "name": "from", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "transferFrom", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/abis/ERC20Pool.json b/abis/ERC20Pool.json index 3a99e08..26d4424 100644 --- a/abis/ERC20Pool.json +++ b/abis/ERC20Pool.json @@ -1,2444 +1,2477 @@ [ { - "inputs": [], - "name": "AllowanceAlreadySet", - "type": "error" - }, - { - "inputs": [], - "name": "AlreadyInitialized", - "type": "error" - }, - { - "inputs": [], - "name": "AmountLTMinDebt", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionActive", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotClearable", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotCleared", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotCleared", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotTakeable", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionPriceGtBucketPrice", - "type": "error" - }, - { - "inputs": [], - "name": "BorrowerNotSender", - "type": "error" - }, - { - "inputs": [], - "name": "BorrowerOk", - "type": "error" - }, - { - "inputs": [], - "name": "BorrowerUnderCollateralized", - "type": "error" - }, - { - "inputs": [], - "name": "BucketBankruptcyBlock", - "type": "error" - }, - { - "inputs": [], - "name": "BucketIndexOutOfBounds", - "type": "error" - }, - { - "inputs": [], - "name": "CannotMergeToHigherPrice", - "type": "error" - }, - { - "inputs": [], - "name": "DustAmountNotExceeded", - "type": "error" - }, - { - "inputs": [], - "name": "FlashloanCallbackFailed", - "type": "error" - }, - { - "inputs": [], - "name": "FlashloanIncorrectBalance", - "type": "error" - }, - { - "inputs": [], - "name": "FlashloanUnavailableForToken", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientCollateral", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientLP", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientLiquidity", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidAllowancesInput", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidAmount", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidIndex", - "type": "error" - }, - { - "inputs": [], - "name": "LUPBelowHTP", - "type": "error" - }, - { - "inputs": [], - "name": "LUPGreaterThanTP", - "type": "error" - }, - { - "inputs": [], - "name": "LimitIndexExceeded", - "type": "error" - }, - { - "inputs": [], - "name": "MoveToSameIndex", - "type": "error" - }, - { - "inputs": [], - "name": "NoAllowance", - "type": "error" - }, - { - "inputs": [], - "name": "NoAuction", - "type": "error" - }, - { - "inputs": [], - "name": "NoClaim", - "type": "error" - }, - { - "inputs": [], - "name": "NoDebt", - "type": "error" - }, - { - "inputs": [], - "name": "NoReserves", - "type": "error" - }, - { - "inputs": [], - "name": "NoReservesAuction", - "type": "error" - }, - { - "inputs": [], - "name": "PRBMathSD59x18__DivInputTooSmall", - "type": "error" - }, - { + "type": "function", + "name": "addCollateral", "inputs": [ { - "internalType": "uint256", - "name": "rAbs", - "type": "uint256" - } - ], - "name": "PRBMathSD59x18__DivOverflow", - "type": "error" - }, - { - "inputs": [ + "name": "amountToAdd_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__Exp2InputTooBig", - "type": "error" - }, - { - "inputs": [ + "name": "index_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "expiry_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__FromIntOverflow", - "type": "error" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "bucketLP_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__FromIntUnderflow", - "type": "error" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addQuoteToken", "inputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__LogInputTooSmall", - "type": "error" - }, - { - "inputs": [], - "name": "PRBMathSD59x18__MulInputTooSmall", - "type": "error" - }, - { - "inputs": [ + "name": "amount_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "rAbs", - "type": "uint256" - } - ], - "name": "PRBMathSD59x18__MulOverflow", - "type": "error" - }, - { - "inputs": [ + "name": "index_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "expiry_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__SqrtNegativeInput", - "type": "error" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "bucketLP_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "addedAmount_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__SqrtOverflow", - "type": "error" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "approveLPTransferors", "inputs": [ { - "internalType": "uint256", - "name": "prod1", - "type": "uint256" + "name": "transferors_", + "type": "address[]", + "internalType": "address[]" } ], - "name": "PRBMath__MulDivFixedPointOverflow", - "type": "error" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "approvedTransferors", "inputs": [ { - "internalType": "uint256", - "name": "prod1", - "type": "uint256" + "name": "", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "denominator", - "type": "uint256" + "name": "", + "type": "address", + "internalType": "address" } ], - "name": "PRBMath__MulDivOverflow", - "type": "error" - }, - { - "inputs": [], - "name": "PoolUnderCollateralized", - "type": "error" - }, - { - "inputs": [], - "name": "PriceBelowLUP", - "type": "error" - }, - { - "inputs": [], - "name": "RemoveDepositLockedByAuctionDebt", - "type": "error" - }, - { - "inputs": [], - "name": "RemoveDepositLockedByAuctionDebt", - "type": "error" - }, - { - "inputs": [], - "name": "ReserveAuctionTooSoon", - "type": "error" - }, - { - "inputs": [], - "name": "TransactionExpired", - "type": "error" - }, - { - "inputs": [], - "name": "TransactionExpired", - "type": "error" - }, - { - "inputs": [], - "name": "TransferToSameOwner", - "type": "error" - }, - { - "inputs": [], - "name": "TransferorNotApproved", - "type": "error" - }, - { - "inputs": [], - "name": "ZeroThresholdPrice", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "actor", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lpAwarded", - "type": "uint256" + "name": "", + "type": "bool", + "internalType": "bool" } ], - "name": "AddCollateral", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "auctionInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, + "name": "borrower_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "kicker_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "bondFactor_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwarded", - "type": "uint256" + "name": "bondSize_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" - } - ], - "name": "AddQuoteToken", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "name": "kickTime_", + "type": "uint256", + "internalType": "uint256" + }, { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "referencePrice_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "address[]", - "name": "transferors", - "type": "address[]" - } - ], - "name": "ApproveLPTransferors", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "name": "neutralPrice_", + "type": "uint256", + "internalType": "uint256" + }, { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "thresholdPrice_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "head_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "lp", - "type": "uint256" + "name": "next_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "prev_", + "type": "address", + "internalType": "address" } ], - "name": "AuctionNFTSettle", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "borrowerInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "borrower_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "AuctionSettle", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "bucketCollateralDust", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "kicker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "reciever", - "type": "address" - }, + "name": "bucketIndex_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BondWithdrawn", - "type": "event" + "stateMutability": "pure" }, { - "anonymous": false, + "type": "function", + "name": "bucketExchangeRate", "inputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, + "name": "index_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lpForfeited", - "type": "uint256" + "name": "exchangeRate_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BucketBankruptcy", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "bucketInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, + "name": "index_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "bondChange", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "bool", - "name": "isReward", - "type": "bool" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BucketTake", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "bucketTake", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "taker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "kicker", - "type": "address" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwardedTaker", - "type": "uint256" + "name": "depositTake_", + "type": "bool", + "internalType": "bool" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwardedKicker", - "type": "uint256" + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BucketTakeLPAwarded", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "burnInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, + "name": "burnEventEpoch_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "DecreaseLPAllowance", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amountBorrowed", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "collateralPledged", - "type": "uint256" - }, + "type": "function", + "name": "collateralAddress", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "", + "type": "address", + "internalType": "address" } ], - "name": "DrawDebt", - "type": "event" + "stateMutability": "pure" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, + "type": "function", + "name": "collateralScale", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - }, + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "currentBurnEpoch", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Flashloan", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ + "type": "function", + "name": "debtInfo", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "IncreaseLPAllowance", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "decreaseLPAllowance", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "debt", - "type": "uint256" + "name": "spender_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" }, { - "indexed": false, - "internalType": "uint256", - "name": "bond", - "type": "uint256" + "name": "amounts_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "Kick", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "depositIndex", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "claimableReservesRemaining", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "auctionPrice", - "type": "uint256" - }, + "name": "debt_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "currentBurnEpoch", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "KickReserveAuction", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "depositScale", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "LoanStamped", - "type": "event" + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "depositSize", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "depositUpToIndex", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, + "name": "index_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "from", - "type": "uint256" - }, + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "depositUtilization", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "to", - "type": "uint256" - }, + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "drawDebt", + "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpRedeemedFrom", - "type": "uint256" + "name": "amountToBorrow_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwardedTo", - "type": "uint256" + "name": "limitIndex_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "collateralToPledge_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "MoveQuoteToken", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ + "type": "function", + "name": "emasInfo", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "claimer", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpRedeemed", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "RemoveCollateral", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "flashFee", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "token_", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "flashLoan", + "inputs": [ + { + "name": "receiver_", + "type": "address", + "internalType": "contract IERC3156FlashBorrower" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "token_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpRedeemed", - "type": "uint256" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "data_", + "type": "bytes", + "internalType": "bytes" } ], - "name": "RemoveQuoteToken", - "type": "event" + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "increaseLPAllowance", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "spender_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "quoteRepaid", - "type": "uint256" + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateralPulled", - "type": "uint256" + "name": "amounts_", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "inflatorInfo", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "RepayDebt", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "initialize", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "claimableReservesRemaining", - "type": "uint256" - }, + "name": "rate_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "interestRateInfo", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "auctionPrice", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "currentBurnEpoch", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "ReserveAuction", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "kick", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "oldRate", - "type": "uint256" + "name": "borrower_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "newRate", - "type": "uint256" + "name": "npLimitIndex_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "ResetInterestRate", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "kickReserveAuction", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "kickerInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, + "name": "kicker_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "RevokeLPAllowance", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "lenderInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "address[]", - "name": "transferors", - "type": "address[]" + "name": "lender_", + "type": "address", + "internalType": "address" } ], - "name": "RevokeLPTransferors", - "type": "event" + "outputs": [ + { + "name": "lpBalance_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "depositTime_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "lenderKick", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "settledDebt", - "type": "uint256" + "name": "npLimitIndex_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Settle", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "loanInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, + "name": "loanId_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "loansInfo", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "bondChange", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "bool", - "name": "isReward", - "type": "bool" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Take", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "lpAllowance", "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "address", - "name": "newOwner", - "type": "address" + "name": "spender_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" - }, + "name": "owner_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lp", - "type": "uint256" + "name": "allowance_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "TransferLP", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "maxFlashLoan", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "oldRate", - "type": "uint256" - }, + "name": "token_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "newRate", - "type": "uint256" + "name": "maxLoan_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "UpdateInterestRate", - "type": "event" + "stateMutability": "view" }, { + "type": "function", + "name": "moveQuoteToken", "inputs": [ { - "internalType": "uint256", - "name": "amountToAdd_", - "type": "uint256" + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "fromIndex_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "toIndex_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "expiry_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "fromBucketLP_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "toBucketLP_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "movedAmount_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "multicall", + "inputs": [ + { + "name": "data", + "type": "bytes[]", + "internalType": "bytes[]" + } + ], + "outputs": [ + { + "name": "results", + "type": "bytes[]", + "internalType": "bytes[]" } ], - "name": "addCollateral", + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "pledgedCollateral", + "inputs": [], "outputs": [ { - "internalType": "uint256", - "name": "bucketLP_", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "expiry_", - "type": "uint256" - }, + "type": "function", + "name": "poolType", + "inputs": [], + "outputs": [ { - "internalType": "bool", - "name": "revertIfBelowLup_", - "type": "bool" + "name": "", + "type": "uint8", + "internalType": "uint8" } ], - "name": "addQuoteToken", + "stateMutability": "pure" + }, + { + "type": "function", + "name": "quoteTokenAddress", + "inputs": [], "outputs": [ { - "internalType": "uint256", - "name": "bucketLP_", - "type": "uint256" + "name": "", + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [ + "type": "function", + "name": "quoteTokenScale", + "inputs": [], + "outputs": [ { - "internalType": "address[]", - "name": "transferors_", - "type": "address[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "approveLPTransferors", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "removeCollateral", "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "approvedTransferors", "outputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "name": "removedAmount_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "redeemedLP_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "removeQuoteToken", "inputs": [ { - "internalType": "address", - "name": "borrower_", - "type": "address" + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "auctionInfo", "outputs": [ { - "internalType": "address", - "name": "kicker_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "bondFactor_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bondSize_", - "type": "uint256" + "name": "removedAmount_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "kickTime_", - "type": "uint256" - }, + "name": "redeemedLP_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "repayDebt", + "inputs": [ { - "internalType": "uint256", - "name": "referencePrice_", - "type": "uint256" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "neutralPrice_", - "type": "uint256" + "name": "maxQuoteTokenAmountToRepay_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "head_", - "type": "address" + "name": "collateralAmountToPull_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "next_", - "type": "address" + "name": "collateralReceiver_", + "type": "address", + "internalType": "address" }, { - "internalType": "address", - "name": "prev_", - "type": "address" + "name": "limitIndex_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "address", - "name": "borrower_", - "type": "address" + "name": "amountRepaid_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "borrowerInfo", + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "reservesInfo", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "revokeLPAllowance", "inputs": [ { - "internalType": "uint256", - "name": "bucketIndex_", - "type": "uint256" - } - ], - "name": "bucketCollateralDust", - "outputs": [ + "name": "spender_", + "type": "address", + "internalType": "address" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "pure", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "revokeLPTransferors", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - } - ], - "name": "bucketExchangeRate", - "outputs": [ - { - "internalType": "uint256", - "name": "exchangeRate_", - "type": "uint256" + "name": "transferors_", + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" + }, + { + "name": "maxDepth_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "bucketInfo", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "collateralSettled_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "isBorrowerSettled_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "stampLoan", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "take", "inputs": [ { - "internalType": "address", "name": "borrowerAddress_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bool", - "name": "depositTake_", - "type": "bool" + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "callee_", + "type": "address", + "internalType": "address" + }, + { + "name": "data_", + "type": "bytes", + "internalType": "bytes" } ], - "name": "bucketTake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "outputs": [ + { + "name": "collateralTaken_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "takeReserves", "inputs": [ { - "internalType": "uint256", - "name": "burnEventEpoch_", - "type": "uint256" + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "burnInfo", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "totalAuctionsInPool", "inputs": [], - "name": "collateralAddress", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "totalT0Debt", "inputs": [], - "name": "collateralScale", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "totalT0DebtInAuction", "inputs": [], - "name": "currentBurnEpoch", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transferLP", + "inputs": [ + { + "name": "owner_", + "type": "address", + "internalType": "address" + }, + { + "name": "newOwner_", + "type": "address", + "internalType": "address" + }, + { + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updateInterest", "inputs": [], - "name": "debtInfo", + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawBonds", + "inputs": [ + { + "name": "recipient_", + "type": "address", + "internalType": "address" + }, + { + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" + } + ], "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "withdrawnAmount_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "AddCollateral", + "inputs": [ + { + "name": "actor", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lpAwarded", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AddQuoteToken", + "inputs": [ + { + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpAwarded", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ApproveLPTransferors", + "inputs": [ + { + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "transferors", + "type": "address[]", + "indexed": false, + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "AuctionNFTSettle", "inputs": [ { - "internalType": "address", - "name": "spender_", - "type": "address" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256[]", - "name": "amounts_", - "type": "uint256[]" + "name": "lp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "index", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "decreaseLPAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "AuctionSettle", "inputs": [ { - "internalType": "uint256", - "name": "debt_", - "type": "uint256" - } - ], - "name": "depositIndex", - "outputs": [ + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "BondWithdrawn", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - } - ], - "name": "depositScale", - "outputs": [ + "name": "kicker", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "reciever", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "depositSize", - "outputs": [ + "type": "event", + "name": "BucketBankruptcy", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "lpForfeited", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "BucketTake", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - } - ], - "name": "depositUpToIndex", - "outputs": [ + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "index", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "bondChange", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "isReward", + "type": "bool", + "indexed": false, + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "depositUtilization", - "outputs": [ + "type": "event", + "name": "BucketTakeLPAwarded", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "taker", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "kicker", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "lpAwardedTaker", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpAwardedKicker", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "DecreaseLPAllowance", "inputs": [ { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "amountToBorrow_", - "type": "uint256" + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "limitIndex_", - "type": "uint256" + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" }, { - "internalType": "uint256", - "name": "collateralToPledge_", - "type": "uint256" + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "name": "drawDebt", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "emasInfo", - "outputs": [ + "type": "event", + "name": "DrawDebt", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "amountBorrowed", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "collateralPledged", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Flashloan", "inputs": [ { - "internalType": "address", - "name": "token_", - "type": "address" + "name": "receiver", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "flashFee", - "outputs": [ + "name": "token", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "IncreaseLPAllowance", "inputs": [ { - "internalType": "contract IERC3156FlashBorrower", - "name": "receiver_", - "type": "address" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "token_", - "type": "address" + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" }, { - "internalType": "bytes", - "name": "data_", - "type": "bytes" + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "name": "flashLoan", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "InterestUpdateFailure", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "Kick", + "inputs": [ + { + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "debt", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, { - "internalType": "bool", - "name": "success_", - "type": "bool" + "name": "bond", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "KickReserveAuction", "inputs": [ { - "internalType": "address", - "name": "spender_", - "type": "address" + "name": "claimableReservesRemaining", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" + "name": "auctionPrice", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256[]", - "name": "amounts_", - "type": "uint256[]" + "name": "currentBurnEpoch", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "increaseLPAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "inflatorInfo", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, + "type": "event", + "name": "LoanStamped", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "MoveQuoteToken", "inputs": [ { - "internalType": "uint256", - "name": "rate_", - "type": "uint256" + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "from", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "to", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpRedeemedFrom", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpAwardedTo", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "interestRateInfo", - "outputs": [ + "type": "event", + "name": "RemoveCollateral", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "claimer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lpRedeemed", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RemoveQuoteToken", "inputs": [ { - "internalType": "address", - "name": "borrower_", - "type": "address" + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "npLimitIndex_", - "type": "uint256" - } - ], - "name": "kick", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "kickReserveAuction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, { - "internalType": "address", - "name": "kicker_", - "type": "address" - } - ], - "name": "kickerInfo", - "outputs": [ + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lpRedeemed", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RepayDebt", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "lender_", - "type": "address" - } - ], - "name": "lenderInfo", - "outputs": [ + "name": "quoteRepaid", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "lpBalance_", - "type": "uint256" + "name": "collateralPulled", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "depositTime_", - "type": "uint256" + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ReserveAuction", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "claimableReservesRemaining", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "npLimitIndex_", - "type": "uint256" + "name": "auctionPrice", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "currentBurnEpoch", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "lenderKick", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ResetInterestRate", "inputs": [ { - "internalType": "uint256", - "name": "loanId_", - "type": "uint256" - } - ], - "name": "loanInfo", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" + "name": "oldRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "newRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "loansInfo", - "outputs": [ + "type": "event", + "name": "RevokeLPAllowance", + "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RevokeLPTransferors", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - }, - { - "internalType": "address", - "name": "spender_", - "type": "address" + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "owner_", - "type": "address" - } - ], - "name": "lpAllowance", - "outputs": [ - { - "internalType": "uint256", - "name": "allowance_", - "type": "uint256" + "name": "transferors", + "type": "address[]", + "indexed": false, + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Settle", "inputs": [ { - "internalType": "address", - "name": "token_", - "type": "address" - } - ], - "name": "maxFlashLoan", - "outputs": [ + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "maxLoan_", - "type": "uint256" + "name": "settledDebt", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Take", "inputs": [ { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "fromIndex_", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "toIndex_", - "type": "uint256" + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "expiry_", - "type": "uint256" + "name": "bondChange", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "bool", - "name": "revertIfBelowLup_", - "type": "bool" + "name": "isReward", + "type": "bool", + "indexed": false, + "internalType": "bool" } ], - "name": "moveQuoteToken", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "TransferLP", + "inputs": [ { - "internalType": "uint256", - "name": "fromBucketLP_", - "type": "uint256" + "name": "owner", + "type": "address", + "indexed": false, + "internalType": "address" }, { - "internalType": "uint256", - "name": "toBucketLP_", - "type": "uint256" + "name": "newOwner", + "type": "address", + "indexed": false, + "internalType": "address" }, { - "internalType": "uint256", - "name": "movedAmount_", - "type": "uint256" + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "lp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UpdateInterestRate", + "inputs": [ + { + "name": "oldRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "newRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false + }, + { + "type": "error", + "name": "AddAboveAuctionPrice", + "inputs": [] + }, + { + "type": "error", + "name": "AddAboveAuctionPrice", + "inputs": [] + }, + { + "type": "error", + "name": "AllowanceAlreadySet", + "inputs": [] + }, + { + "type": "error", + "name": "AlreadyInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "AmountLTMinDebt", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionActive", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotClearable", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotCleared", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotCleared", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotTakeable", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionPriceGtBucketPrice", + "inputs": [] + }, + { + "type": "error", + "name": "BorrowerNotSender", + "inputs": [] + }, + { + "type": "error", + "name": "BorrowerOk", + "inputs": [] + }, + { + "type": "error", + "name": "BorrowerUnderCollateralized", + "inputs": [] + }, + { + "type": "error", + "name": "BucketBankruptcyBlock", + "inputs": [] + }, + { + "type": "error", + "name": "BucketIndexOutOfBounds", + "inputs": [] + }, + { + "type": "error", + "name": "CannotMergeToHigherPrice", + "inputs": [] + }, + { + "type": "error", + "name": "DustAmountNotExceeded", + "inputs": [] + }, + { + "type": "error", + "name": "FlashloanCallbackFailed", + "inputs": [] + }, + { + "type": "error", + "name": "FlashloanIncorrectBalance", + "inputs": [] + }, + { + "type": "error", + "name": "FlashloanUnavailableForToken", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientCollateral", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientLP", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientLiquidity", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidAllowancesInput", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidAmount", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidIndex", + "inputs": [] + }, + { + "type": "error", + "name": "LUPBelowHTP", + "inputs": [] + }, + { + "type": "error", + "name": "LUPGreaterThanTP", + "inputs": [] }, { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "results", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "LimitIndexExceeded", + "inputs": [] }, { - "inputs": [], - "name": "pledgedCollateral", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "MoveToSameIndex", + "inputs": [] }, { - "inputs": [], - "name": "poolType", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "pure", - "type": "function" + "type": "error", + "name": "NoAllowance", + "inputs": [] }, { - "inputs": [], - "name": "quoteTokenAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "pure", - "type": "function" + "type": "error", + "name": "NoAuction", + "inputs": [] }, { - "inputs": [], - "name": "quoteTokenScale", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" + "type": "error", + "name": "NoClaim", + "inputs": [] + }, + { + "type": "error", + "name": "NoDebt", + "inputs": [] }, { + "type": "error", + "name": "NoReserves", + "inputs": [] + }, + { + "type": "error", + "name": "NoReservesAuction", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__DivInputTooSmall", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__DivOverflow", "inputs": [ { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "rAbs", + "type": "uint256", + "internalType": "uint256" } - ], - "name": "removeCollateral", - "outputs": [ - { - "internalType": "uint256", - "name": "removedAmount_", - "type": "uint256" - }, + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__Exp2InputTooBig", + "inputs": [ { - "internalType": "uint256", - "name": "redeemedLP_", - "type": "uint256" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMathSD59x18__FromIntOverflow", "inputs": [ { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "name": "removeQuoteToken", - "outputs": [ - { - "internalType": "uint256", - "name": "removedAmount_", - "type": "uint256" - }, + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__FromIntUnderflow", + "inputs": [ { - "internalType": "uint256", - "name": "redeemedLP_", - "type": "uint256" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMathSD59x18__LogInputTooSmall", "inputs": [ { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maxQuoteTokenAmountToRepay_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "collateralAmountToPull_", - "type": "uint256" - }, - { - "internalType": "address", - "name": "collateralReceiver_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "limitIndex_", - "type": "uint256" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "name": "repayDebt", - "outputs": [ + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__MulInputTooSmall", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__MulOverflow", + "inputs": [ { - "internalType": "uint256", - "name": "amountRepaid_", - "type": "uint256" + "name": "rAbs", + "type": "uint256", + "internalType": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [], - "name": "reservesInfo", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, + "type": "error", + "name": "PRBMathSD59x18__SqrtNegativeInput", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "stateMutability": "view", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMathSD59x18__SqrtOverflow", "inputs": [ { - "internalType": "address", - "name": "spender_", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "name": "revokeLPAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMath__MulDivFixedPointOverflow", "inputs": [ { - "internalType": "address[]", - "name": "transferors_", - "type": "address[]" + "name": "prod1", + "type": "uint256", + "internalType": "uint256" } - ], - "name": "revokeLPTransferors", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMath__MulDivOverflow", "inputs": [ { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" + "name": "prod1", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "maxDepth_", - "type": "uint256" + "name": "denominator", + "type": "uint256", + "internalType": "uint256" } - ], - "name": "settle", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [], - "name": "stampLoan", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "PoolUnderCollateralized", + "inputs": [] }, { - "inputs": [ - { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - }, - { - "internalType": "address", - "name": "callee_", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data_", - "type": "bytes" - } - ], - "name": "take", - "outputs": [ - { - "internalType": "uint256", - "name": "collateralTaken_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "PriceBelowLUP", + "inputs": [] }, { - "inputs": [ - { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - } - ], - "name": "takeReserves", - "outputs": [ - { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "RemoveDepositLockedByAuctionDebt", + "inputs": [] }, { - "inputs": [], - "name": "totalAuctionsInPool", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "RemoveDepositLockedByAuctionDebt", + "inputs": [] }, { - "inputs": [], - "name": "totalT0Debt", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "ReserveAuctionTooSoon", + "inputs": [] }, { - "inputs": [], - "name": "totalT0DebtInAuction", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "TransactionExpired", + "inputs": [] }, { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner_", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" - } - ], - "name": "transferLP", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "TransactionExpired", + "inputs": [] }, { - "inputs": [], - "name": "updateInterest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "TransferToSameOwner", + "inputs": [] }, { - "inputs": [ - { - "internalType": "address", - "name": "recipient_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - } - ], - "name": "withdrawBonds", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "TransferorNotApproved", + "inputs": [] + }, + { + "type": "error", + "name": "ZeroThresholdPrice", + "inputs": [] } ] diff --git a/abis/ERC20PoolFactory.json b/abis/ERC20PoolFactory.json index a4032d0..d46aca2 100644 --- a/abis/ERC20PoolFactory.json +++ b/abis/ERC20PoolFactory.json @@ -1,230 +1,230 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "ajna_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "CreateFail", - "type": "error" - }, - { - "inputs": [], - "name": "DecimalsNotCompliant", - "type": "error" - }, - { - "inputs": [], - "name": "DeployQuoteCollateralSameToken", - "type": "error" - }, - { - "inputs": [], - "name": "DeployWithZeroAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "pool_", - "type": "address" - } - ], - "name": "PoolAlreadyExists", - "type": "error" - }, - { - "inputs": [], - "name": "PoolInterestRateInvalid", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "pool_", - "type": "address" - } - ], - "name": "PoolCreated", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "ERC20_NON_SUBSET_HASH", + "inputs": [], "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "MAX_RATE", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "MIN_RATE", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "ajna", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "deployPool", "inputs": [ { - "internalType": "address", "name": "collateral_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "quote_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "interestRate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deployPool", "outputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deployedPools", "inputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "deployedPools", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "deployedPoolsList", "inputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deployedPoolsList", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDeployedPoolsList", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getNumberOfDeployedPools", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "implementation", + "inputs": [], "outputs": [ { - "internalType": "contract ERC20Pool", "name": "", - "type": "address" + "type": "address", + "internalType": "contract ERC20Pool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "PoolCreated", + "inputs": [ + { + "name": "pool_", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false + }, + { + "type": "error", + "name": "CreateFail", + "inputs": [] + }, + { + "type": "error", + "name": "DecimalsNotCompliant", + "inputs": [] + }, + { + "type": "error", + "name": "DeployQuoteCollateralSameToken", + "inputs": [] + }, + { + "type": "error", + "name": "DeployWithZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "PoolAlreadyExists", + "inputs": [ + { + "name": "pool_", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "PoolInterestRateInvalid", + "inputs": [] } ] diff --git a/abis/ERC721.json b/abis/ERC721.json index 616eeb5..152eb74 100644 --- a/abis/ERC721.json +++ b/abis/ERC721.json @@ -1,208 +1,348 @@ [ { + "type": "constructor", "inputs": [ - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" } + { + "name": "name_", + "type": "string", + "internalType": "string" + }, + { + "name": "symbol_", + "type": "string", + "internalType": "string" + } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "approve", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" + "name": "to", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "approved", - "type": "address" - }, + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getApproved", + "inputs": [ { - "indexed": true, - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" } ], - "name": "ERC721Approval", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "isApprovedForAll", "inputs": [ { - "indexed": true, - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", "name": "operator", - "type": "address" - }, + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "bool", - "name": "approved", - "type": "bool" + "name": "", + "type": "bool", + "internalType": "bool" } ], - "name": "ERC721ApprovalForAll", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ownerOf", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "safeTransferFrom", "inputs": [ { - "indexed": true, - "internalType": "address", "name": "from", - "type": "address" + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "ERC721Transfer", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "safeTransferFrom", "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "tokenId", "type": "uint256" } + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } ], - "name": "approve", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setApprovalForAll", "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "approved", + "type": "bool", + "internalType": "bool" + } ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "supportsInterface", "inputs": [ - { "internalType": "uint256", "name": "tokenId", "type": "uint256" } + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } ], - "name": "getApproved", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "operator", "type": "address" } + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } ], - "name": "isApprovedForAll", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "symbol", "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "tokenId", "type": "uint256" } + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } ], - "name": "ownerOf", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "tokenURI", "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "tokenId", "type": "uint256" } + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } ], - "name": "safeTransferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transferFrom", "inputs": [ - { "internalType": "address", "name": "operator", "type": "address" }, - { "internalType": "bool", "name": "approved", "type": "bool" } + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } ], - "name": "setApprovalForAll", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "event", + "name": "Approval", "inputs": [ - { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } ], - "name": "supportsInterface", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ApprovalForAll", "inputs": [ - { "internalType": "uint256", "name": "tokenId", "type": "uint256" } + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "bool", + "indexed": false, + "internalType": "bool" + } ], - "name": "tokenURI", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Transfer", "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "tokenId", "type": "uint256" } + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } ], - "name": "transferFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/abis/ERC721Pool.json b/abis/ERC721Pool.json index 34ae7d6..8180237 100644 --- a/abis/ERC721Pool.json +++ b/abis/ERC721Pool.json @@ -1,2534 +1,2567 @@ [ { - "inputs": [], - "name": "AllowanceAlreadySet", - "type": "error" - }, - { - "inputs": [], - "name": "AlreadyInitialized", - "type": "error" - }, - { - "inputs": [], - "name": "AmountLTMinDebt", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionActive", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotClearable", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotCleared", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotCleared", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionNotTakeable", - "type": "error" - }, - { - "inputs": [], - "name": "AuctionPriceGtBucketPrice", - "type": "error" - }, - { - "inputs": [], - "name": "BorrowerNotSender", - "type": "error" - }, - { - "inputs": [], - "name": "BorrowerOk", - "type": "error" - }, - { - "inputs": [], - "name": "BorrowerUnderCollateralized", - "type": "error" - }, - { - "inputs": [], - "name": "BucketBankruptcyBlock", - "type": "error" - }, - { - "inputs": [], - "name": "BucketIndexOutOfBounds", - "type": "error" - }, - { - "inputs": [], - "name": "CannotMergeToHigherPrice", - "type": "error" - }, - { - "inputs": [], - "name": "DustAmountNotExceeded", - "type": "error" - }, - { - "inputs": [], - "name": "FlashloanCallbackFailed", - "type": "error" - }, - { - "inputs": [], - "name": "FlashloanIncorrectBalance", - "type": "error" - }, - { - "inputs": [], - "name": "FlashloanUnavailableForToken", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientCollateral", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientLP", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientLiquidity", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidAllowancesInput", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidAmount", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidIndex", - "type": "error" - }, - { - "inputs": [], - "name": "LUPBelowHTP", - "type": "error" - }, - { - "inputs": [], - "name": "LUPGreaterThanTP", - "type": "error" - }, - { - "inputs": [], - "name": "LimitIndexExceeded", - "type": "error" - }, - { - "inputs": [], - "name": "MoveToSameIndex", - "type": "error" - }, - { - "inputs": [], - "name": "NoAllowance", - "type": "error" - }, - { - "inputs": [], - "name": "NoAuction", - "type": "error" - }, - { - "inputs": [], - "name": "NoClaim", - "type": "error" - }, - { - "inputs": [], - "name": "NoDebt", - "type": "error" - }, - { - "inputs": [], - "name": "NoReserves", - "type": "error" - }, - { - "inputs": [], - "name": "NoReservesAuction", - "type": "error" - }, - { - "inputs": [], - "name": "OnlySubset", - "type": "error" - }, - { + "type": "function", + "name": "addCollateral", "inputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "tokenIds_", + "type": "uint256[]", + "internalType": "uint256[]" + }, + { + "name": "index_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "expiry_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__Exp2InputTooBig", - "type": "error" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "bucketLP_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__FromIntOverflow", - "type": "error" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addQuoteToken", "inputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "index_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "expiry_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__FromIntUnderflow", - "type": "error" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" + "name": "bucketLP_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "addedAmount_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "PRBMathSD59x18__LogInputTooSmall", - "type": "error" - }, - { - "inputs": [], - "name": "PRBMathSD59x18__MulInputTooSmall", - "type": "error" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "approveLPTransferors", "inputs": [ { - "internalType": "uint256", - "name": "rAbs", - "type": "uint256" + "name": "transferors_", + "type": "address[]", + "internalType": "address[]" } ], - "name": "PRBMathSD59x18__MulOverflow", - "type": "error" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "approvedTransferors", "inputs": [ { - "internalType": "uint256", - "name": "prod1", - "type": "uint256" + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "address", + "internalType": "address" } ], - "name": "PRBMath__MulDivFixedPointOverflow", - "type": "error" - }, - { - "inputs": [], - "name": "PoolUnderCollateralized", - "type": "error" - }, - { - "inputs": [], - "name": "PriceBelowLUP", - "type": "error" - }, - { - "inputs": [], - "name": "RemoveDepositLockedByAuctionDebt", - "type": "error" - }, - { - "inputs": [], - "name": "RemoveDepositLockedByAuctionDebt", - "type": "error" - }, - { - "inputs": [], - "name": "ReserveAuctionTooSoon", - "type": "error" - }, - { - "inputs": [], - "name": "TransactionExpired", - "type": "error" - }, - { - "inputs": [], - "name": "TransactionExpired", - "type": "error" - }, - { - "inputs": [], - "name": "TransferToSameOwner", - "type": "error" - }, - { - "inputs": [], - "name": "TransferorNotApproved", - "type": "error" - }, - { - "inputs": [], - "name": "ZeroThresholdPrice", - "type": "error" + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "auctionInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "actor", - "type": "address" - }, + "name": "borrower_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "kicker_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenIds", - "type": "uint256[]" + "name": "bondFactor_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwarded", - "type": "uint256" - } - ], - "name": "AddCollateralNFT", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "name": "bondSize_", + "type": "uint256", + "internalType": "uint256" + }, { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "kickTime_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "referencePrice_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "neutralPrice_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwarded", - "type": "uint256" + "name": "thresholdPrice_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" - } - ], - "name": "AddQuoteToken", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "name": "head_", + "type": "address", + "internalType": "address" + }, { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "next_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "address[]", - "name": "transferors", - "type": "address[]" + "name": "prev_", + "type": "address", + "internalType": "address" } ], - "name": "ApproveLPTransferors", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "borrowerInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, + "name": "borrower_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lp", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "AuctionNFTSettle", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "borrowerTokenIds", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "AuctionSettle", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "kicker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "reciever", - "type": "address" - }, + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BondWithdrawn", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "bucketExchangeRate", "inputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, + "name": "index_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lpForfeited", - "type": "uint256" + "name": "exchangeRate_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BucketBankruptcy", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "bucketInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, + "name": "index_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "bondChange", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "bool", - "name": "isReward", - "type": "bool" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BucketTake", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "bucketTake", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "taker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "kicker", - "type": "address" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwardedTaker", - "type": "uint256" + "name": "depositTake_", + "type": "bool", + "internalType": "bool" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwardedKicker", - "type": "uint256" + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "BucketTakeLPAwarded", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "bucketTokenIds", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" - }, + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "DecreaseLPAllowance", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "burnInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, + "name": "burnEventEpoch_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amountBorrowed", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "tokenIdsPledged", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "DrawDebtNFT", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, + "type": "function", + "name": "collateralAddress", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - }, + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "currentBurnEpoch", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Flashloan", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ + "type": "function", + "name": "debtInfo", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "amounts", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "IncreaseLPAllowance", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "decreaseLPAllowance", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "debt", - "type": "uint256" + "name": "spender_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" }, { - "indexed": false, - "internalType": "uint256", - "name": "bond", - "type": "uint256" + "name": "amounts_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "Kick", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "depositIndex", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "claimableReservesRemaining", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "auctionPrice", - "type": "uint256" - }, + "name": "debt_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "currentBurnEpoch", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "KickReserveAuction", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "depositScale", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "LoanStamped", - "type": "event" + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "depositSize", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "depositUpToIndex", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "actor", - "type": "address" - }, + "name": "index_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "collateralMerged", - "type": "uint256" - }, + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "depositUtilization", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "toIndexLps", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "MergeOrRemoveCollateralNFT", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "drawDebt", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "uint256", - "name": "from", - "type": "uint256" + "name": "amountToBorrow_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": true, - "internalType": "uint256", - "name": "to", - "type": "uint256" + "name": "limitIndex_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "tokenIdsToPledge_", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "emasInfo", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpRedeemedFrom", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpAwardedTo", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "MoveQuoteToken", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "flashFee", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "claimer", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "token_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lpRedeemed", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "RemoveCollateral", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "flashLoan", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "receiver_", + "type": "address", + "internalType": "contract IERC3156FlashBorrower" }, { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" + "name": "token_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lpRedeemed", - "type": "uint256" - }, + "name": "data_", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "", + "type": "bool", + "internalType": "bool" } ], - "name": "RemoveQuoteToken", - "type": "event" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "increaseLPAllowance", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "spender_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "quoteRepaid", - "type": "uint256" + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateralPulled", - "type": "uint256" + "name": "amounts_", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "inflatorInfo", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "lup", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "RepayDebt", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "initialize", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "claimableReservesRemaining", - "type": "uint256" + "name": "tokenIds_", + "type": "uint256[]", + "internalType": "uint256[]" }, { - "indexed": false, - "internalType": "uint256", - "name": "auctionPrice", - "type": "uint256" + "name": "rate_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "interestRateInfo", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "currentBurnEpoch", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "ReserveAuction", - "type": "event" + "stateMutability": "view" + }, + { + "type": "function", + "name": "isSubset", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "pure" }, { - "anonymous": false, + "type": "function", + "name": "kick", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "oldRate", - "type": "uint256" + "name": "borrower_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "newRate", - "type": "uint256" + "name": "npLimitIndex_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "ResetInterestRate", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "kickReserveAuction", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "kickerInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, + "name": "kicker_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "RevokeLPAllowance", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "lenderInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "address[]", - "name": "transferors", - "type": "address[]" + "name": "lender_", + "type": "address", + "internalType": "address" } ], - "name": "RevokeLPTransferors", - "type": "event" + "outputs": [ + { + "name": "lpBalance_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "depositTime_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "lenderKick", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "settledDebt", - "type": "uint256" + "name": "npLimitIndex_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Settle", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "loanInfo", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, + "name": "loanId_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "collateral", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "loansInfo", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "bondChange", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "bool", - "name": "isReward", - "type": "bool" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Take", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "lpAllowance", "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "address", - "name": "newOwner", - "type": "address" + "name": "spender_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" - }, + "name": "owner_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "lp", - "type": "uint256" + "name": "allowance_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "TransferLP", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "maxFlashLoan", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "oldRate", - "type": "uint256" - }, + "name": "token_", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "newRate", - "type": "uint256" + "name": "maxLoan_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "UpdateInterestRate", - "type": "event" + "stateMutability": "view" }, { + "type": "function", + "name": "mergeOrRemoveCollateral", "inputs": [ { - "internalType": "uint256[]", - "name": "tokenIds_", - "type": "uint256[]" + "name": "removalIndexes_", + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "noOfNFTsToRemove_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "expiry_", - "type": "uint256" + "name": "toIndex_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "addCollateral", "outputs": [ { - "internalType": "uint256", + "name": "collateralMerged_", + "type": "uint256", + "internalType": "uint256" + }, + { "name": "bucketLP_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "moveQuoteToken", "inputs": [ { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "fromIndex_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "toIndex_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "expiry_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "fromBucketLP_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "toBucketLP_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bool", - "name": "revertIfBelowLup_", - "type": "bool" + "name": "movedAmount_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "multicall", + "inputs": [ + { + "name": "data", + "type": "bytes[]", + "internalType": "bytes[]" } ], - "name": "addQuoteToken", "outputs": [ { - "internalType": "uint256", - "name": "bucketLP_", - "type": "uint256" + "name": "results", + "type": "bytes[]", + "internalType": "bytes[]" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "pledgedCollateral", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "poolType", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "uint8" + } + ], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "quoteTokenAddress", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [ + "type": "function", + "name": "quoteTokenScale", + "inputs": [], + "outputs": [ { - "internalType": "address[]", - "name": "transferors_", - "type": "address[]" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "approveLPTransferors", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "removeCollateral", "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "name": "noOfNFTsToRemove_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "", - "type": "address" + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "approvedTransferors", "outputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "name": "removedAmount_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "redeemedLP_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "removeQuoteToken", "inputs": [ { - "internalType": "address", - "name": "borrower_", - "type": "address" + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "index_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "auctionInfo", "outputs": [ { - "internalType": "address", - "name": "kicker_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "bondFactor_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bondSize_", - "type": "uint256" + "name": "removedAmount_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "kickTime_", - "type": "uint256" - }, + "name": "redeemedLP_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "repayDebt", + "inputs": [ { - "internalType": "uint256", - "name": "referencePrice_", - "type": "uint256" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "neutralPrice_", - "type": "uint256" + "name": "maxQuoteTokenAmountToRepay_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "head_", - "type": "address" + "name": "noOfNFTsToPull_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "next_", - "type": "address" + "name": "collateralReceiver_", + "type": "address", + "internalType": "address" }, { - "internalType": "address", - "name": "prev_", - "type": "address" + "name": "limitIndex_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "address", - "name": "borrower_", - "type": "address" + "name": "amountRepaid_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "borrowerInfo", + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "reservesInfo", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "revokeLPAllowance", "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "name": "spender_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "borrowerTokenIds", - "outputs": [ + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeLPTransferors", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "transferors_", + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" + }, + { + "name": "maxDepth_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "bucketExchangeRate", "outputs": [ { - "internalType": "uint256", - "name": "exchangeRate_", - "type": "uint256" + "name": "collateralSettled_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "isBorrowerSettled_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "stampLoan", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "take", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - } - ], - "name": "bucketInfo", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "borrowerAddress_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "collateral_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "callee_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, + "name": "data_", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "collateralTaken_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "takeReserves", "inputs": [ { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" - }, - { - "internalType": "bool", - "name": "depositTake_", - "type": "bool" - }, + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "bucketTake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "tokenIdsAllowed", "inputs": [ { - "internalType": "uint256", + "name": "tokenId_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { "name": "", - "type": "uint256" + "type": "bool", + "internalType": "bool" } ], - "name": "bucketTokenIds", + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalAuctionsInPool", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "totalBorrowerTokens", "inputs": [ { - "internalType": "uint256", - "name": "burnEventEpoch_", - "type": "uint256" + "name": "borrower_", + "type": "address", + "internalType": "address" } ], - "name": "burnInfo", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "totalBucketTokens", "inputs": [], - "name": "collateralAddress", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "totalT0Debt", "inputs": [], - "name": "currentBurnEpoch", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "totalT0DebtInAuction", "inputs": [], - "name": "debtInfo", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" - }, + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transferLP", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "owner_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "newOwner_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "indexes_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "updateInterest", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdrawBonds", "inputs": [ { - "internalType": "address", - "name": "spender_", - "type": "address" + "name": "recipient_", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" - }, + "name": "maxAmount_", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "internalType": "uint256[]", - "name": "amounts_", - "type": "uint256[]" + "name": "withdrawnAmount_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "decreaseLPAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "event", + "name": "AddCollateralNFT", "inputs": [ { - "internalType": "uint256", - "name": "debt_", - "type": "uint256" + "name": "actor", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "lpAwarded", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "depositIndex", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "AddQuoteToken", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpAwarded", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ApproveLPTransferors", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "transferors", + "type": "address[]", + "indexed": false, + "internalType": "address[]" } ], - "name": "depositScale", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "AuctionNFTSettle", + "inputs": [ + { + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "index", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "depositSize", - "outputs": [ + "type": "event", + "name": "AuctionSettle", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "BondWithdrawn", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - } - ], - "name": "depositUpToIndex", - "outputs": [ + "name": "kicker", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "reciever", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "depositUtilization", - "outputs": [ + "type": "event", + "name": "BucketBankruptcy", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "lpForfeited", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "BucketTake", "inputs": [ { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "amountToBorrow_", - "type": "uint256" + "name": "index", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "limitIndex_", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256[]", - "name": "tokenIdsToPledge_", - "type": "uint256[]" + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "bondChange", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "isReward", + "type": "bool", + "indexed": false, + "internalType": "bool" } ], - "name": "drawDebt", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "emasInfo", - "outputs": [ + "type": "event", + "name": "BucketTakeLPAwarded", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "taker", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "kicker", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lpAwardedTaker", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lpAwardedKicker", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "DecreaseLPAllowance", "inputs": [ { - "internalType": "address", - "name": "token_", - "type": "address" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "flashFee", - "outputs": [ + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "DrawDebtNFT", "inputs": [ { - "internalType": "contract IERC3156FlashBorrower", - "name": "receiver_", - "type": "address" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "token_", - "type": "address" + "name": "amountBorrowed", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "tokenIdsPledged", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" }, { - "internalType": "bytes", - "name": "data_", - "type": "bytes" - } - ], - "name": "flashLoan", - "outputs": [ - { - "internalType": "bool", - "name": "success_", - "type": "bool" + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Flashloan", "inputs": [ { - "internalType": "address", - "name": "spender_", - "type": "address" + "name": "receiver", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" + "name": "token", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "amounts_", - "type": "uint256[]" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "increaseLPAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "inflatorInfo", - "outputs": [ + "type": "event", + "name": "IncreaseLPAllowance", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false + }, + { + "type": "event", + "name": "InterestUpdateFailure", + "inputs": [], + "anonymous": false }, { + "type": "event", + "name": "Kick", "inputs": [ { - "internalType": "uint256[]", - "name": "tokenIds_", - "type": "uint256[]" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "rate_", - "type": "uint256" + "name": "debt", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "bond", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "interestRateInfo", - "outputs": [ + "type": "event", + "name": "KickReserveAuction", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "claimableReservesRemaining", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "auctionPrice", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "currentBurnEpoch", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "isSubset", - "outputs": [ + "type": "event", + "name": "LoanStamped", + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "pure", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "MergeOrRemoveCollateralNFT", "inputs": [ { - "internalType": "address", - "name": "borrower_", - "type": "address" + "name": "actor", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "npLimitIndex_", - "type": "uint256" + "name": "collateralMerged", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "toIndexLps", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "kick", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "kickReserveAuction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "MoveQuoteToken", "inputs": [ { - "internalType": "address", - "name": "kicker_", - "type": "address" + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "from", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "to", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpRedeemedFrom", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpAwardedTo", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "kickerInfo", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "RemoveCollateral", + "inputs": [ + { + "name": "claimer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "lpRedeemed", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RemoveQuoteToken", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "lender_", - "type": "address" - } - ], - "name": "lenderInfo", - "outputs": [ + "name": "index", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "lpBalance_", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "depositTime_", - "type": "uint256" + "name": "lpRedeemed", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RepayDebt", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "npLimitIndex_", - "type": "uint256" + "name": "quoteRepaid", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "collateralPulled", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lup", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "lenderKick", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ReserveAuction", "inputs": [ { - "internalType": "uint256", - "name": "loanId_", - "type": "uint256" - } - ], - "name": "loanInfo", - "outputs": [ + "name": "claimableReservesRemaining", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, { - "internalType": "address", - "name": "", - "type": "address" + "name": "auctionPrice", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "currentBurnEpoch", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "loansInfo", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, + "type": "event", + "name": "ResetInterestRate", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "oldRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "newRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RevokeLPAllowance", "inputs": [ { - "internalType": "uint256", - "name": "index_", - "type": "uint256" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "spender_", - "type": "address" + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "owner_", - "type": "address" - } - ], - "name": "lpAllowance", - "outputs": [ - { - "internalType": "uint256", - "name": "allowance_", - "type": "uint256" + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RevokeLPTransferors", "inputs": [ { - "internalType": "address", - "name": "token_", - "type": "address" - } - ], - "name": "maxFlashLoan", - "outputs": [ + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "maxLoan_", - "type": "uint256" + "name": "transferors", + "type": "address[]", + "indexed": false, + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Settle", "inputs": [ { - "internalType": "uint256[]", - "name": "removalIndexes_", - "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "noOfNFTsToRemove_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "toIndex_", - "type": "uint256" - } - ], - "name": "mergeOrRemoveCollateral", - "outputs": [ - { - "internalType": "uint256", - "name": "collateralMerged_", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "bucketLP_", - "type": "uint256" + "name": "settledDebt", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Take", "inputs": [ { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "fromIndex_", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "toIndex_", - "type": "uint256" + "name": "collateral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "expiry_", - "type": "uint256" + "name": "bondChange", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "bool", - "name": "revertIfBelowLup_", - "type": "bool" + "name": "isReward", + "type": "bool", + "indexed": false, + "internalType": "bool" } ], - "name": "moveQuoteToken", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "TransferLP", + "inputs": [ { - "internalType": "uint256", - "name": "fromBucketLP_", - "type": "uint256" + "name": "owner", + "type": "address", + "indexed": false, + "internalType": "address" }, { - "internalType": "uint256", - "name": "toBucketLP_", - "type": "uint256" + "name": "newOwner", + "type": "address", + "indexed": false, + "internalType": "address" }, { - "internalType": "uint256", - "name": "movedAmount_", - "type": "uint256" + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "lp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "UpdateInterestRate", "inputs": [ { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ + "name": "oldRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, { - "internalType": "bytes[]", - "name": "results", - "type": "bytes[]" + "name": "newRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false + }, + { + "type": "error", + "name": "AddAboveAuctionPrice", + "inputs": [] + }, + { + "type": "error", + "name": "AddAboveAuctionPrice", + "inputs": [] + }, + { + "type": "error", + "name": "AllowanceAlreadySet", + "inputs": [] + }, + { + "type": "error", + "name": "AlreadyInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "AmountLTMinDebt", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionActive", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotClearable", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotCleared", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotCleared", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionNotTakeable", + "inputs": [] + }, + { + "type": "error", + "name": "AuctionPriceGtBucketPrice", + "inputs": [] + }, + { + "type": "error", + "name": "BorrowerNotSender", + "inputs": [] + }, + { + "type": "error", + "name": "BorrowerOk", + "inputs": [] + }, + { + "type": "error", + "name": "BorrowerUnderCollateralized", + "inputs": [] + }, + { + "type": "error", + "name": "BucketBankruptcyBlock", + "inputs": [] + }, + { + "type": "error", + "name": "BucketIndexOutOfBounds", + "inputs": [] + }, + { + "type": "error", + "name": "CannotMergeToHigherPrice", + "inputs": [] + }, + { + "type": "error", + "name": "DustAmountNotExceeded", + "inputs": [] + }, + { + "type": "error", + "name": "FlashloanCallbackFailed", + "inputs": [] + }, + { + "type": "error", + "name": "FlashloanIncorrectBalance", + "inputs": [] + }, + { + "type": "error", + "name": "FlashloanUnavailableForToken", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientCollateral", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientLP", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientLiquidity", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidAllowancesInput", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidAmount", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidIndex", + "inputs": [] + }, + { + "type": "error", + "name": "LUPBelowHTP", + "inputs": [] + }, + { + "type": "error", + "name": "LUPGreaterThanTP", + "inputs": [] + }, + { + "type": "error", + "name": "LimitIndexExceeded", + "inputs": [] + }, + { + "type": "error", + "name": "MoveToSameIndex", + "inputs": [] }, { - "inputs": [], - "name": "pledgedCollateral", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "NoAllowance", + "inputs": [] }, { - "inputs": [], - "name": "poolType", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "pure", - "type": "function" + "type": "error", + "name": "NoAuction", + "inputs": [] }, { - "inputs": [], - "name": "quoteTokenAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "pure", - "type": "function" + "type": "error", + "name": "NoClaim", + "inputs": [] }, { - "inputs": [], - "name": "quoteTokenScale", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" + "type": "error", + "name": "NoDebt", + "inputs": [] }, { - "inputs": [ - { - "internalType": "uint256", - "name": "noOfNFTsToRemove_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - } - ], - "name": "removeCollateral", - "outputs": [ - { - "internalType": "uint256", - "name": "removedAmount_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "redeemedLP_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "NoReserves", + "inputs": [] }, { - "inputs": [ - { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "index_", - "type": "uint256" - } - ], - "name": "removeQuoteToken", - "outputs": [ - { - "internalType": "uint256", - "name": "removedAmount_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "redeemedLP_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "NoReservesAuction", + "inputs": [] }, { - "inputs": [ - { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maxQuoteTokenAmountToRepay_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "noOfNFTsToPull_", - "type": "uint256" - }, - { - "internalType": "address", - "name": "collateralReceiver_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "limitIndex_", - "type": "uint256" - } - ], - "name": "repayDebt", - "outputs": [ - { - "internalType": "uint256", - "name": "amountRepaid_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "OnlySubset", + "inputs": [] }, { - "inputs": [], - "name": "reservesInfo", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, + "type": "error", + "name": "PRBMathSD59x18__Exp2InputTooBig", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "stateMutability": "view", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMathSD59x18__FromIntOverflow", "inputs": [ { - "internalType": "address", - "name": "spender_", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "name": "revokeLPAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMathSD59x18__FromIntUnderflow", "inputs": [ { - "internalType": "address[]", - "name": "transferors_", - "type": "address[]" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "name": "revokeLPTransferors", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMathSD59x18__LogInputTooSmall", "inputs": [ { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maxDepth_", - "type": "uint256" + "name": "x", + "type": "int256", + "internalType": "int256" } - ], - "name": "settle", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [], - "name": "stampLoan", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "PRBMathSD59x18__MulInputTooSmall", + "inputs": [] }, { + "type": "error", + "name": "PRBMathSD59x18__MulOverflow", "inputs": [ { - "internalType": "address", - "name": "borrowerAddress_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "collateral_", - "type": "uint256" - }, - { - "internalType": "address", - "name": "callee_", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data_", - "type": "bytes" - } - ], - "name": "take", - "outputs": [ - { - "internalType": "uint256", - "name": "collateralTaken_", - "type": "uint256" + "name": "rAbs", + "type": "uint256", + "internalType": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "error", + "name": "PRBMath__MulDivFixedPointOverflow", "inputs": [ { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - } - ], - "name": "takeReserves", - "outputs": [ - { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "prod1", + "type": "uint256", + "internalType": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [ - { - "internalType": "uint256", - "name": "tokenId_", - "type": "uint256" - } - ], - "name": "tokenIdsAllowed", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "PoolUnderCollateralized", + "inputs": [] }, { - "inputs": [], - "name": "totalAuctionsInPool", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "PriceBelowLUP", + "inputs": [] }, { - "inputs": [ - { - "internalType": "address", - "name": "borrower_", - "type": "address" - } - ], - "name": "totalBorrowerTokens", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "RemoveDepositLockedByAuctionDebt", + "inputs": [] }, { - "inputs": [], - "name": "totalBucketTokens", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "RemoveDepositLockedByAuctionDebt", + "inputs": [] }, { - "inputs": [], - "name": "totalT0Debt", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "ReserveAuctionTooSoon", + "inputs": [] }, { - "inputs": [], - "name": "totalT0DebtInAuction", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "type": "error", + "name": "TransactionExpired", + "inputs": [] }, { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner_", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "indexes_", - "type": "uint256[]" - } - ], - "name": "transferLP", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "TransactionExpired", + "inputs": [] }, { - "inputs": [], - "name": "updateInterest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "TransferToSameOwner", + "inputs": [] }, { - "inputs": [ - { - "internalType": "address", - "name": "recipient_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maxAmount_", - "type": "uint256" - } - ], - "name": "withdrawBonds", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "type": "error", + "name": "TransferorNotApproved", + "inputs": [] + }, + { + "type": "error", + "name": "ZeroThresholdPrice", + "inputs": [] } -] \ No newline at end of file +] diff --git a/abis/ERC721PoolFactory.json b/abis/ERC721PoolFactory.json index 4cb105a..ef866eb 100644 --- a/abis/ERC721PoolFactory.json +++ b/abis/ERC721PoolFactory.json @@ -1,293 +1,293 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "ajna_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "CreateFail", - "type": "error" - }, - { - "inputs": [], - "name": "DecimalsNotCompliant", - "type": "error" - }, - { - "inputs": [], - "name": "DeployQuoteCollateralSameToken", - "type": "error" - }, - { - "inputs": [], - "name": "DeployWithZeroAddress", - "type": "error" - }, - { - "inputs": [], - "name": "NFTNotSupported", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "pool_", - "type": "address" - } - ], - "name": "PoolAlreadyExists", - "type": "error" - }, - { - "inputs": [], - "name": "PoolInterestRateInvalid", - "type": "error" - }, - { - "inputs": [], - "name": "TokenIdSubsetInvalid", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "pool_", - "type": "address" - } - ], - "name": "PoolCreated", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "ERC721_NON_SUBSET_HASH", + "inputs": [], "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "MAX_RATE", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "MIN_RATE", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "ajna", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "deployPool", "inputs": [ { - "internalType": "address", "name": "collateral_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "quote_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "interestRate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deployPool", "outputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deployPool", "inputs": [ { - "internalType": "address", "name": "collateral_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "quote_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256[]", "name": "tokenIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "uint256", "name": "interestRate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deployPool", "outputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deployedPools", "inputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "deployedPools", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "deployedPoolsList", "inputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deployedPoolsList", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDeployedPoolsList", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getNFTSubsetHash", "inputs": [ { - "internalType": "uint256[]", "name": "tokenIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "getNFTSubsetHash", "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getNumberOfDeployedPools", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "implementation", + "inputs": [], "outputs": [ { - "internalType": "contract ERC721Pool", "name": "", - "type": "address" + "type": "address", + "internalType": "contract ERC721Pool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" + }, + { + "type": "event", + "name": "PoolCreated", + "inputs": [ + { + "name": "pool_", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "CreateFail", + "inputs": [] + }, + { + "type": "error", + "name": "DecimalsNotCompliant", + "inputs": [] + }, + { + "type": "error", + "name": "DeployQuoteCollateralSameToken", + "inputs": [] + }, + { + "type": "error", + "name": "DeployWithZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "NFTNotSupported", + "inputs": [] + }, + { + "type": "error", + "name": "PoolAlreadyExists", + "inputs": [ + { + "name": "pool_", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "PoolInterestRateInvalid", + "inputs": [] + }, + { + "type": "error", + "name": "TokenIdSubsetInvalid", + "inputs": [] } ] diff --git a/abis/GrantFund.json b/abis/GrantFund.json index e4ea4b7..ba6636f 100644 --- a/abis/GrantFund.json +++ b/abis/GrantFund.json @@ -10,11 +10,6 @@ "stateMutability": "nonpayable", "type": "constructor" }, - { - "inputs": [], - "name": "AlreadyVoted", - "type": "error" - }, { "inputs": [], "name": "DelegateRewardInvalid", diff --git a/abis/PoolInfoUtils.json b/abis/PoolInfoUtils.json index f4792e6..4068ab6 100644 --- a/abis/PoolInfoUtils.json +++ b/abis/PoolInfoUtils.json @@ -1,681 +1,765 @@ [ { - "inputs": [], - "name": "BucketIndexOutOfBounds", - "type": "error" - }, - { - "inputs": [], - "name": "BucketPriceOutOfBounds", - "type": "error" - }, - { + "type": "function", + "name": "auctionInfo", "inputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__CeilOverflow", - "type": "error" - }, - { - "inputs": [], - "name": "PRBMathSD59x18__DivInputTooSmall", - "type": "error" - }, - { - "inputs": [ + "name": "ajnaPool_", + "type": "address", + "internalType": "address" + }, { - "internalType": "uint256", - "name": "rAbs", - "type": "uint256" + "name": "borrower_", + "type": "address", + "internalType": "address" } ], - "name": "PRBMathSD59x18__DivOverflow", - "type": "error" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__Exp2InputTooBig", - "type": "error" - }, - { - "inputs": [ + "name": "kicker_", + "type": "address", + "internalType": "address" + }, { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__FromIntOverflow", - "type": "error" - }, - { - "inputs": [ + "name": "bondFactor_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__FromIntUnderflow", - "type": "error" - }, - { - "inputs": [ + "name": "bondSize_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__LogInputTooSmall", - "type": "error" - }, - { - "inputs": [], - "name": "PRBMathSD59x18__MulInputTooSmall", - "type": "error" - }, - { - "inputs": [ + "name": "kickTime_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "rAbs", - "type": "uint256" - } - ], - "name": "PRBMathSD59x18__MulOverflow", - "type": "error" - }, - { - "inputs": [ + "name": "referencePrice_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "prod1", - "type": "uint256" - } - ], - "name": "PRBMath__MulDivFixedPointOverflow", - "type": "error" - }, - { - "inputs": [ + "name": "neutralPrice_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "prod1", - "type": "uint256" + "name": "thresholdPrice_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "denominator", - "type": "uint256" + "name": "head_", + "type": "address", + "internalType": "address" + }, + { + "name": "next_", + "type": "address", + "internalType": "address" + }, + { + "name": "prev_", + "type": "address", + "internalType": "address" } ], - "name": "PRBMath__MulDivOverflow", - "type": "error" + "stateMutability": "view" }, { + "type": "function", + "name": "auctionStatus", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "borrower_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "auctionStatus", "outputs": [ { - "internalType": "uint256", "name": "kickTime_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "collateral_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "debtToCover_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bool", "name": "isCollateralized_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "uint256", "name": "price_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "neutralPrice_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "referencePrice_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "thresholdPrice_", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "bondFactor_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "availableQuoteTokenAmount", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "availableQuoteTokenAmount", "outputs": [ { - "internalType": "uint256", "name": "amount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "borrowFeeRate", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "borrowFeeRate", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "borrowerInfo", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "borrower_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "borrowerInfo", "outputs": [ { - "internalType": "uint256", "name": "debt_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "collateral_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "t0Np_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "bucketInfo", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "bucketInfo", "outputs": [ { - "internalType": "uint256", "name": "price_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "quoteTokens_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "collateral_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "bucketLP_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "scale_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "exchangeRate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "hpb", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "hpb", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "hpbIndex", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "hpbIndex", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "htp", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "htp", "outputs": [ { - "internalType": "uint256", "name": "htp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "indexToPrice", "inputs": [ { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "indexToPrice", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "lenderInterestMargin", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "lenderInterestMargin", "outputs": [ { - "internalType": "uint256", "name": "lenderInterestMargin_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lpToCollateral", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "lp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "lpToCollateral", "outputs": [ { - "internalType": "uint256", "name": "collateralAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lpToQuoteTokens", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "lp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "lpToQuoteTokens", "outputs": [ { - "internalType": "uint256", "name": "quoteAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lup", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "lup", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lupIndex", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "lupIndex", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "poolLoansInfo", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "poolLoansInfo", "outputs": [ { - "internalType": "uint256", "name": "poolSize_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "loansCount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "maxBorrower_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "pendingInflator_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "pendingInterestFactor_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "poolPricesInfo", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "poolPricesInfo", "outputs": [ { - "internalType": "uint256", "name": "hpb_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "hpbIndex_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "htp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "htpIndex_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "lup_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "lupIndex_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "poolReservesInfo", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "poolReservesInfo", "outputs": [ { - "internalType": "uint256", "name": "reserves_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "claimableReserves_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "claimableReservesRemaining_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "auctionPrice_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "timeRemaining_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "poolUtilizationInfo", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "poolUtilizationInfo", "outputs": [ { - "internalType": "uint256", "name": "poolMinDebtAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "poolCollateralization_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "poolActualUtilization_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "poolTargetUtilization_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "priceToIndex", "inputs": [ { - "internalType": "uint256", "name": "price_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "priceToIndex", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "unutilizedDepositFeeRate", "inputs": [ { - "internalType": "address", "name": "ajnaPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "unutilizedDepositFeeRate", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" + }, + { + "type": "error", + "name": "BucketIndexOutOfBounds", + "inputs": [] + }, + { + "type": "error", + "name": "BucketPriceOutOfBounds", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__CeilOverflow", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__DivInputTooSmall", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__DivOverflow", + "inputs": [ + { + "name": "rAbs", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__Exp2InputTooBig", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__FromIntOverflow", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__FromIntUnderflow", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__LogInputTooSmall", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__MulInputTooSmall", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__MulOverflow", + "inputs": [ + { + "name": "rAbs", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "PRBMath__MulDivFixedPointOverflow", + "inputs": [ + { + "name": "prod1", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "PRBMath__MulDivOverflow", + "inputs": [ + { + "name": "prod1", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "denominator", + "type": "uint256", + "internalType": "uint256" + } + ] } ] diff --git a/abis/PositionManager.json b/abis/PositionManager.json index 2f71269..160201f 100644 --- a/abis/PositionManager.json +++ b/abis/PositionManager.json @@ -1,1026 +1,1021 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "contract ERC20PoolFactory", "name": "erc20Factory_", - "type": "address" + "type": "address", + "internalType": "contract ERC20PoolFactory" }, { - "internalType": "contract ERC721PoolFactory", "name": "erc721Factory_", - "type": "address" + "type": "address", + "internalType": "contract ERC721PoolFactory" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "AllowanceTooLow", - "type": "error" - }, - { - "inputs": [], - "name": "BucketBankrupt", - "type": "error" - }, - { - "inputs": [], - "name": "BucketIndexOutOfBounds", - "type": "error" - }, - { - "inputs": [], - "name": "DeployWithZeroAddress", - "type": "error" - }, - { - "inputs": [], - "name": "LiquidityNotRemoved", - "type": "error" - }, - { - "inputs": [], - "name": "NoAuth", - "type": "error" - }, - { - "inputs": [], - "name": "NoToken", - "type": "error" - }, - { - "inputs": [], - "name": "NonExistentToken", - "type": "error" - }, - { - "inputs": [], - "name": "NotAjnaPool", - "type": "error" - }, - { - "inputs": [], - "name": "NotAuthorized", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__Exp2InputTooBig", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__FromIntOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__FromIntUnderflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "int256", - "name": "x", - "type": "int256" - } - ], - "name": "PRBMathSD59x18__LogInputTooSmall", - "type": "error" - }, - { - "inputs": [], - "name": "PRBMathSD59x18__MulInputTooSmall", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "rAbs", - "type": "uint256" - } - ], - "name": "PRBMathSD59x18__MulOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "prod1", - "type": "uint256" - } - ], - "name": "PRBMath__MulDivFixedPointOverflow", - "type": "error" - }, - { - "inputs": [], - "name": "PermitExpired", - "type": "error" - }, - { - "inputs": [], - "name": "RemovePositionFailed", - "type": "error" - }, - { - "inputs": [], - "name": "WrongPool", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "approved", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "approved", - "type": "bool" - } - ], - "name": "ApprovalForAll", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" - } - ], - "name": "MemorializePosition", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "pool", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "fromIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "toIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lpRedeemedFrom", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lpAwardedTo", - "type": "uint256" - } - ], - "name": "MoveLiquidity", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "indexes", - "type": "uint256[]" - } - ], - "name": "RedeemPosition", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "DOMAIN_SEPARATOR", + "inputs": [], "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "PERMIT_TYPEHASH", + "inputs": [], "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "approve", "inputs": [ { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "approve", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "balanceOf", "inputs": [ { - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "balanceOf", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "burn", "inputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "burn", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getApproved", "inputs": [ { - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getApproved", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getLP", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getLP", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPositionIndexes", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getPositionIndexes", "outputs": [ { - "internalType": "uint256[]", "name": "", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPositionIndexesFiltered", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getPositionIndexesFiltered", "outputs": [ { - "internalType": "uint256[]", "name": "filteredIndexes_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPositionInfo", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getPositionInfo", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isAjnaPool", "inputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes32", "name": "subsetHash_", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "name": "isAjnaPool", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isApprovedForAll", "inputs": [ { - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "operator", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isApprovedForAll", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isIndexInPosition", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "isIndexInPosition", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isPositionBucketBankrupt", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "index_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "isPositionBucketBankrupt", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "memorializePositions", "inputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256[]", "name": "indexes_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "memorializePositions", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "mint", "inputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes32", "name": "poolSubsetHash_", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "name": "mint", "outputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "moveLiquidity", "inputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "fromIndex_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "toIndex_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "expiry_", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "revertIfBelowLup_", - "type": "bool" + "type": "uint256", + "internalType": "uint256" } ], - "name": "moveLiquidity", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "multicall", "inputs": [ { - "internalType": "bytes[]", "name": "data", - "type": "bytes[]" + "type": "bytes[]", + "internalType": "bytes[]" } ], - "name": "multicall", "outputs": [ { - "internalType": "bytes[]", "name": "results", - "type": "bytes[]" + "type": "bytes[]", + "internalType": "bytes[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "name", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "nonces", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "nonces", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "ownerOf", "inputs": [ { - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "ownerOf", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "permit", "inputs": [ { - "internalType": "address", "name": "spender_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "deadline_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "signature_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "permit", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "poolKey", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "poolKey", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeemPositions", "inputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256[]", "name": "indexes_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "redeemPositions", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "safeTransferFrom", "inputs": [ { - "internalType": "address", "name": "from", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "safeTransferFrom", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "safeTransferFrom", "inputs": [ { - "internalType": "address", "name": "from", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "safeTransferFrom", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setApprovalForAll", "inputs": [ { - "internalType": "address", "name": "operator", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bool", "name": "approved", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "setApprovalForAll", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "supportsInterface", "inputs": [ { - "internalType": "bytes4", "name": "interfaceId", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "name": "supportsInterface", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "symbol", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "tokenURI", "inputs": [ { - "internalType": "uint256", "name": "tokenId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "tokenURI", "outputs": [ { - "internalType": "string", "name": "", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transferFrom", "inputs": [ { - "internalType": "address", "name": "from", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "tokenId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "transferFrom", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ApprovalForAll", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "approved", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Burn", + "inputs": [ + { + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "MemorializePosition", + "inputs": [ + { + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Mint", + "inputs": [ + { + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "pool", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "MoveLiquidity", + "inputs": [ + { + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "fromIndex", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "toIndex", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpRedeemedFrom", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "lpAwardedTo", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RedeemPosition", + "inputs": [ + { + "name": "lender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "indexes", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AllowanceTooLow", + "inputs": [] + }, + { + "type": "error", + "name": "BucketBankrupt", + "inputs": [] + }, + { + "type": "error", + "name": "BucketIndexOutOfBounds", + "inputs": [] + }, + { + "type": "error", + "name": "DeployWithZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "LiquidityNotRemoved", + "inputs": [] + }, + { + "type": "error", + "name": "NoAuth", + "inputs": [] + }, + { + "type": "error", + "name": "NoToken", + "inputs": [] + }, + { + "type": "error", + "name": "NonExistentToken", + "inputs": [] + }, + { + "type": "error", + "name": "NotAjnaPool", + "inputs": [] + }, + { + "type": "error", + "name": "NotAuthorized", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__Exp2InputTooBig", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__FromIntOverflow", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__FromIntUnderflow", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__LogInputTooSmall", + "inputs": [ + { + "name": "x", + "type": "int256", + "internalType": "int256" + } + ] + }, + { + "type": "error", + "name": "PRBMathSD59x18__MulInputTooSmall", + "inputs": [] + }, + { + "type": "error", + "name": "PRBMathSD59x18__MulOverflow", + "inputs": [ + { + "name": "rAbs", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "PRBMath__MulDivFixedPointOverflow", + "inputs": [ + { + "name": "prod1", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "PermitExpired", + "inputs": [] + }, + { + "type": "error", + "name": "RemovePositionFailed", + "inputs": [] + }, + { + "type": "error", + "name": "WrongPool", + "inputs": [] } ]