[ { "inputs": [ { "internalType": "contract CollateralState", "name": "_state", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "address", "name": "_manager", "type": "address" }, { "internalType": "address", "name": "_resolver", "type": "address" }, { "internalType": "bytes32", "name": "_collateralKey", "type": "bytes32" }, { "internalType": "uint256", "name": "_minCratio", "type": "uint256" }, { "internalType": "uint256", "name": "_minCollateral", "type": "uint256" }, { "internalType": "address", "name": "_underlyingContract", "type": "address" }, { "internalType": "uint256", "name": "_underlyingDecimals", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor", "signature": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "name", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "destination", "type": "address" } ], "name": "CacheUpdated", "type": "event", "signature": "0x88a93678a3692f6789d9546fc621bf7234b101ddb7d4fe479455112831b8aa68" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bool", "name": "canOpenLoans", "type": "bool" } ], "name": "CanOpenLoansUpdated", "type": "event", "signature": "0x261991749e1b2436706a31bde8bf184bb37fe21e303709b78d3b881afacadaa2" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountDeposited", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "collateralAfter", "type": "uint256" } ], "name": "CollateralDeposited", "type": "event", "signature": "0x0b1992dffc262be88559dcaf96464e9d661d8bfca7e82f2bb73e31932a82187c" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountWithdrawn", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "collateralAfter", "type": "uint256" } ], "name": "CollateralWithdrawn", "type": "event", "signature": "0xfae26280bca25d80f1501a9e363c73d3845e651c9aaae54f1fc09a9dcd5f3303" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "interactionDelay", "type": "uint256" } ], "name": "InteractionDelayUpdated", "type": "event", "signature": "0x4d71c92b0a9dc236066597b95637bb04d58cd135e9165aee13eb68e3199c2361" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "issueFeeRate", "type": "uint256" } ], "name": "IssueFeeRateUpdated", "type": "event", "signature": "0xe7bd72551c54d568cd97b00dc52d2787b5c5d4f0070d3582c1e8ba25141f799c" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LoanClosed", "type": "event", "signature": "0xcab22a4e95d29d40da2ace3f6ec72b49954a9bc7b2584f8fd47bf7f357a3ed6f" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "liquidator", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountLiquidated", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "collateralLiquidated", "type": "uint256" } ], "name": "LoanClosedByLiquidation", "type": "event", "signature": "0x697721ed1b9d4866cb1aaa0692f62bb3abc1b01c2dafeaad053ffd4532aa7dbb" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "collateral", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "issuanceFee", "type": "uint256" } ], "name": "LoanCreated", "type": "event", "signature": "0x604952b18be5fed608cbdd28101dc57bd667055c9678ec6d44fb1d8e4c7c172a" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LoanDrawnDown", "type": "event", "signature": "0x5754fe57f36ac0f121901d7555aba517e6608590429d86a81c662cf358310654" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "liquidator", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountLiquidated", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "collateralLiquidated", "type": "uint256" } ], "name": "LoanPartiallyLiquidated", "type": "event", "signature": "0xb6e43890aeea54fbe6c0ed628e78172a0ff30bbcb1d70d8b130b12c366bac4c5" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "repayer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountRepaid", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountAfter", "type": "uint256" } ], "name": "LoanRepaymentMade", "type": "event", "signature": "0xdf10512219e869922340b1b24b21d7d79bf71f411a6391cc7c3ef5dd2fe89e7f" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "manager", "type": "address" } ], "name": "ManagerUpdated", "type": "event", "signature": "0x2c1c11af44aa5608f1dca38c00275c30ea091e02417d36e70e9a1538689c433d" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "maxLoansPerAccount", "type": "uint256" } ], "name": "MaxLoansPerAccountUpdated", "type": "event", "signature": "0x6a5107c7de25c5b210323f3c6c2caea6502583fbe45acdca57e75a4dc9534e8c" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "minCollateral", "type": "uint256" } ], "name": "MinCollateralUpdated", "type": "event", "signature": "0xd19fe8ad9152af12b174a60210fb798db0767d63973ebb97298dc44d67a5c82d" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "minCratio", "type": "uint256" } ], "name": "MinCratioRatioUpdated", "type": "event", "signature": "0x813a44586e8ecb9390b2568dbe810e193087f80e415c8845340ef06d4cbb42a5" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerChanged", "type": "event", "signature": "0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerNominated", "type": "event", "signature": "0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22" }, { "constant": false, "inputs": [], "name": "acceptOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x79ba5097" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "rewardsContract", "type": "address" }, { "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "addRewardsContracts", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x5eb2ad01" }, { "constant": false, "inputs": [ { "internalType": "bytes32[]", "name": "_synthNamesInResolver", "type": "bytes32[]" }, { "internalType": "bytes32[]", "name": "_synthKeys", "type": "bytes32[]" } ], "name": "addSynths", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x23d60e2e" }, { "constant": true, "inputs": [ { "internalType": "bytes32[]", "name": "_synthNamesInResolver", "type": "bytes32[]" }, { "internalType": "bytes32[]", "name": "_synthKeys", "type": "bytes32[]" } ], "name": "areSynthsAndCurrenciesSet", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x72e18b6a" }, { "constant": true, "inputs": [], "name": "canOpenLoans", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x4065b81b" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "close", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x0aebeb4e" }, { "constant": true, "inputs": [], "name": "collateralKey", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xb562a1ab" }, { "constant": true, "inputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address payable", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "collateral", "type": "uint256" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bool", "name": "short", "type": "bool" }, { "internalType": "uint256", "name": "accruedInterest", "type": "uint256" }, { "internalType": "uint256", "name": "interestIndex", "type": "uint256" }, { "internalType": "uint256", "name": "lastInteraction", "type": "uint256" } ], "internalType": "struct ICollateralLoan.Loan", "name": "loan", "type": "tuple" } ], "name": "collateralRatio", "outputs": [ { "internalType": "uint256", "name": "cratio", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xdac8cf68" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "collateralRedeemed", "outputs": [ { "internalType": "uint256", "name": "collateral", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x0a153c97" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x0efe6a8b" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "draw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xd2b8035a" }, { "constant": true, "inputs": [], "name": "interactionDelay", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x15aaf4dd" }, { "constant": true, "inputs": [], "name": "isResolverCached", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x2af64bd3" }, { "constant": true, "inputs": [], "name": "issueFeeRate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x361e2086" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "liquidate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x0710285c" }, { "constant": true, "inputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address payable", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "collateral", "type": "uint256" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bool", "name": "short", "type": "bool" }, { "internalType": "uint256", "name": "accruedInterest", "type": "uint256" }, { "internalType": "uint256", "name": "interestIndex", "type": "uint256" }, { "internalType": "uint256", "name": "lastInteraction", "type": "uint256" } ], "internalType": "struct ICollateralLoan.Loan", "name": "loan", "type": "tuple" } ], "name": "liquidationAmount", "outputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xe74337c6" }, { "constant": true, "inputs": [], "name": "manager", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x481c6a75" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" } ], "name": "maxLoan", "outputs": [ { "internalType": "uint256", "name": "max", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x7e132355" }, { "constant": true, "inputs": [], "name": "maxLoansPerAccount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xeb8e3b65" }, { "constant": true, "inputs": [], "name": "minCollateral", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xba2de9bc" }, { "constant": true, "inputs": [], "name": "minCratio", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x925ead11" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "nominateNewOwner", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x1627540c" }, { "constant": true, "inputs": [], "name": "nominatedOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x53a47bb7" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "collateral", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" } ], "name": "open", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xf93451ed" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x8da5cb5b" }, { "constant": false, "inputs": [], "name": "rebuildCache", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x74185360" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "borrower", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "repay", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x8cd2e0c7" }, { "constant": true, "inputs": [], "name": "resolver", "outputs": [ { "internalType": "contract AddressResolver", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x04f3bcec" }, { "constant": true, "inputs": [], "name": "resolverAddressesRequired", "outputs": [ { "internalType": "bytes32[]", "name": "addresses", "type": "bytes32[]" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x899ffef4" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "collateral", "type": "uint256" } ], "name": "scaleDownCollateral", "outputs": [ { "internalType": "uint256", "name": "scaledDown", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xb094f2c4" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "collateral", "type": "uint256" } ], "name": "scaleUpCollateral", "outputs": [ { "internalType": "uint256", "name": "scaledUp", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x883a2209" }, { "constant": false, "inputs": [ { "internalType": "bool", "name": "_canOpenLoans", "type": "bool" } ], "name": "setCanOpenLoans", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x90abb4d9" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_interactionDelay", "type": "uint256" } ], "name": "setInteractionDelay", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x4c17ace4" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_issueFeeRate", "type": "uint256" } ], "name": "setIssueFeeRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xa76cdfa5" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_newManager", "type": "address" } ], "name": "setManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xd0ebdbe7" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_minCratio", "type": "uint256" } ], "name": "setMinCratio", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x0cdd1c65" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "shortingRewards", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xde81eda9" }, { "constant": true, "inputs": [], "name": "state", "outputs": [ { "internalType": "contract CollateralState", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xc19d93fb" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "synths", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x30edd961" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "synthsByKey", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x38245377" }, { "constant": true, "inputs": [], "name": "underlyingContract", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x10cfe906" }, { "constant": true, "inputs": [], "name": "underlyingContractDecimals", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x3cc3ffc7" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x441a3e70" } ]