[ { "inputs": [ { "internalType": "contract CollateralManagerState", "name": "_state", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "address", "name": "_resolver", "type": "address" }, { "internalType": "uint256", "name": "_maxDebt", "type": "uint256" }, { "internalType": "uint256", "name": "_baseBorrowRate", "type": "uint256" }, { "internalType": "uint256", "name": "_baseShortRate", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor", "signature": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "baseBorrowRate", "type": "uint256" } ], "name": "BaseBorrowRateUpdated", "type": "event", "signature": "0x08f9599493340b8255c7698bded59e30079641f4a9531613ec02055739247004" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "baseShortRate", "type": "uint256" } ], "name": "BaseShortRateUpdated", "type": "event", "signature": "0xe2695216766f2a627e90e17041ac2f085fd60ea503345b039f815c69bcbcccc9" }, { "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": "address", "name": "collateral", "type": "address" } ], "name": "CollateralAdded", "type": "event", "signature": "0x7db05e63d635a68c62fd7fd8f3107ae8ab584a383e102d1bd8a40f4c977e465f" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "collateral", "type": "address" } ], "name": "CollateralRemoved", "type": "event", "signature": "0xd89d2ee68ab04dca0193f48a4aff55e20fa5ec0429a8a8c1c51b8dad6178a593" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "liquidationPenalty", "type": "uint256" } ], "name": "LiquidationPenaltyUpdated", "type": "event", "signature": "0xbfb22c07314f4682bba789860ceb851eb8cea2d867920332b2a42cf56be5b2e9" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "maxDebt", "type": "uint256" } ], "name": "MaxDebtUpdated", "type": "event", "signature": "0x3620cc91bd75c6d3d752b529a1b98b38789dd2b81a13ece55801abc83531a77f" }, { "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" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bool", "name": "isPaused", "type": "bool" } ], "name": "PauseChanged", "type": "event", "signature": "0x8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "ShortableSynthAdded", "type": "event", "signature": "0xa71e21d8a72d99830e0d382f042d37e6a20c8a33ec3185affcaf6586e9a0187a" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "ShortableSynthRemoved", "type": "event", "signature": "0x23caa21d7c1015aa7051e1ae4a09f99de36dab4545dfec5f4dde3a54173a123b" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "SynthAdded", "type": "event", "signature": "0x87f8a613724bd8be7a9139e4c83bc8d58fedee7206e2d7077849f5988d787599" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "SynthRemoved", "type": "event", "signature": "0x788aff97f65e6ddeee9246c47d08b819813066c87876a912c79baddffb138f0a" }, { "constant": true, "inputs": [], "name": "CONTRACT_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x614d08f8" }, { "constant": false, "inputs": [], "name": "acceptOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x79ba5097" }, { "constant": false, "inputs": [ { "internalType": "address[]", "name": "collaterals", "type": "address[]" } ], "name": "addCollaterals", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xbbb601cd" }, { "constant": false, "inputs": [ { "internalType": "bytes32[2][]", "name": "requiredSynthAndInverseNamesInResolver", "type": "bytes32[2][]" }, { "internalType": "bytes32[]", "name": "synthKeys", "type": "bytes32[]" } ], "name": "addShortableSynths", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xc88b412e" }, { "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": "requiredSynthNamesInResolver", "type": "bytes32[]" }, { "internalType": "bytes32[]", "name": "synthKeys", "type": "bytes32[]" } ], "name": "areShortableSynthsSet", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x93a72fbe" }, { "constant": true, "inputs": [ { "internalType": "bytes32[]", "name": "requiredSynthNamesInResolver", "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": "baseBorrowRate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xbf386682" }, { "constant": true, "inputs": [], "name": "baseShortRate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x4db7764c" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "synth", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "decrementLongs", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xe50a31b3" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "synth", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "decrementShorts", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x5246f2b9" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" } ], "name": "exceedsDebtLimit", "outputs": [ { "internalType": "bool", "name": "canIssue", "type": "bool" }, { "internalType": "bool", "name": "anyRateIsInvalid", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xb4d6cb40" }, { "constant": true, "inputs": [], "name": "getBorrowRate", "outputs": [ { "internalType": "uint256", "name": "borrowRate", "type": "uint256" }, { "internalType": "bool", "name": "anyRateIsInvalid", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xba1c5e80" }, { "constant": false, "inputs": [], "name": "getNewLoanId", "outputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xb3b46732" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "getRatesAndTime", "outputs": [ { "internalType": "uint256", "name": "entryRate", "type": "uint256" }, { "internalType": "uint256", "name": "lastRate", "type": "uint256" }, { "internalType": "uint256", "name": "lastUpdated", "type": "uint256" }, { "internalType": "uint256", "name": "newIndex", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x03f048b0" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "getShortRate", "outputs": [ { "internalType": "uint256", "name": "shortRate", "type": "uint256" }, { "internalType": "bool", "name": "rateIsInvalid", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xee81f790" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "getShortRatesAndTime", "outputs": [ { "internalType": "uint256", "name": "entryRate", "type": "uint256" }, { "internalType": "uint256", "name": "lastRate", "type": "uint256" }, { "internalType": "uint256", "name": "lastUpdated", "type": "uint256" }, { "internalType": "uint256", "name": "newIndex", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xaf07aa9d" }, { "constant": true, "inputs": [ { "internalType": "address[]", "name": "collaterals", "type": "address[]" } ], "name": "hasAllCollaterals", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x744d646e" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "collateral", "type": "address" } ], "name": "hasCollateral", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xb38988f7" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "synth", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "incrementLongs", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xeb94bbde" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "synth", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "incrementShorts", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xe31f27c1" }, { "constant": true, "inputs": [], "name": "isResolverCached", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x2af64bd3" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" } ], "name": "isSynthManaged", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x8471db13" }, { "constant": true, "inputs": [], "name": "lastPauseTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x91b4ded9" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "long", "outputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xd2f00475" }, { "constant": true, "inputs": [], "name": "maxDebt", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xd0064c00" }, { "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": true, "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x8da5cb5b" }, { "constant": true, "inputs": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x5c975abb" }, { "constant": false, "inputs": [], "name": "rebuildCache", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x74185360" }, { "constant": false, "inputs": [ { "internalType": "address[]", "name": "collaterals", "type": "address[]" } ], "name": "removeCollaterals", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xffa749cd" }, { "constant": false, "inputs": [ { "internalType": "bytes32[]", "name": "synths", "type": "bytes32[]" } ], "name": "removeShortableSynths", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xca969f23" }, { "constant": false, "inputs": [ { "internalType": "bytes32[]", "name": "synths", "type": "bytes32[]" }, { "internalType": "bytes32[]", "name": "synthKeys", "type": "bytes32[]" } ], "name": "removeSynths", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x710388d1" }, { "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": false, "inputs": [ { "internalType": "uint256", "name": "_baseBorrowRate", "type": "uint256" } ], "name": "setBaseBorrowRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x0c9c81a1" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_baseShortRate", "type": "uint256" } ], "name": "setBaseShortRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x8b173e81" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_maxDebt", "type": "uint256" } ], "name": "setMaxDebt", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x6526941b" }, { "constant": false, "inputs": [ { "internalType": "bool", "name": "_paused", "type": "bool" } ], "name": "setPaused", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x16c38b3c" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_utilisationMultiplier", "type": "uint256" } ], "name": "setUtilisationMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x9f7eac37" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "synth", "type": "bytes32" } ], "name": "short", "outputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xe32261fe" }, { "constant": true, "inputs": [], "name": "state", "outputs": [ { "internalType": "contract CollateralManagerState", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xc19d93fb" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "synthToInverseSynth", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xf0e740c3" }, { "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": "totalLong", "outputs": [ { "internalType": "uint256", "name": "susdValue", "type": "uint256" }, { "internalType": "bool", "name": "anyRateIsInvalid", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x1e33fc6b" }, { "constant": true, "inputs": [], "name": "totalShort", "outputs": [ { "internalType": "uint256", "name": "susdValue", "type": "uint256" }, { "internalType": "bool", "name": "anyRateIsInvalid", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xad79a858" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "rate", "type": "uint256" } ], "name": "updateBorrowRates", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xf53037b6" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "internalType": "uint256", "name": "rate", "type": "uint256" } ], "name": "updateShortRates", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x24620639" }, { "constant": true, "inputs": [], "name": "utilisationMultiplier", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xc9e18015" } ]