@dolomite-exchange/dolomite-margin 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/contracts/Account.json +11 -11
- package/build/contracts/Actions.json +11 -11
- package/build/contracts/Address.json +1 -1
- package/build/contracts/Admin.json +23 -23
- package/build/contracts/AdminImpl.json +35 -307
- package/build/contracts/AdvancedMath.json +7 -7
- package/build/contracts/AmmRebalancerProxy.json +577 -621
- package/build/contracts/AmmRebalancerProxyV1.json +78 -32
- package/build/contracts/Babylonian.json +1 -1
- package/build/contracts/Bits.json +9 -9
- package/build/contracts/Cache.json +13 -13
- package/build/contracts/ChainlinkPriceOracleV1.json +16 -16
- package/build/contracts/Context.json +1 -1
- package/build/contracts/CustomTestToken.json +9 -9
- package/build/contracts/Decimal.json +9 -9
- package/build/contracts/DelayedMultiSig.json +9 -9
- package/build/contracts/DolomiteAmmERC20.json +11 -11
- package/build/contracts/DolomiteAmmFactory.json +14 -52
- package/build/contracts/DolomiteAmmLibrary.json +24 -24
- package/build/contracts/DolomiteAmmPair.json +27 -27
- package/build/contracts/DolomiteAmmRouterProxy.json +30 -363
- package/build/contracts/DolomiteMargin.json +21 -67
- package/build/contracts/DoubleExponentInterestSetter.json +15 -21
- package/build/contracts/EnumerableSet.json +7 -7
- package/build/contracts/ErroringOmiseToken.json +9 -9
- package/build/contracts/ErroringToken.json +10 -10
- package/build/contracts/Events.json +17 -17
- package/build/contracts/ExcessivelySafeCall.json +35 -35
- package/build/contracts/Exchange.json +15 -15
- package/build/contracts/Expiry.json +36 -36
- package/build/contracts/Getters.json +33 -33
- package/build/contracts/IAutoTrader.json +9 -9
- package/build/contracts/ICallee.json +7 -7
- package/build/contracts/IChainlinkAggregator.json +5 -5
- package/build/contracts/IDolomiteAmmERC20.json +5 -5
- package/build/contracts/IDolomiteAmmFactory.json +9 -9
- package/build/contracts/IDolomiteAmmPair.json +9 -9
- package/build/contracts/IDolomiteMargin.json +23 -23
- package/build/contracts/IERC20.json +1 -1
- package/build/contracts/IERC20Detailed.json +5 -5
- package/build/contracts/IExchangeWrapper.json +5 -5
- package/build/contracts/IExpiry.json +9 -9
- package/build/contracts/IInterestSetter.json +7 -7
- package/build/contracts/ILiquidationCallback.json +7 -7
- package/build/contracts/IMakerOracle.json +5 -5
- package/build/contracts/IOasisDex.json +5 -5
- package/build/contracts/IPriceOracle.json +7 -7
- package/build/contracts/IRecyclable.json +9 -9
- package/build/contracts/ITransferProxy.json +5 -5
- package/build/contracts/IUniswapV2Callee.json +5 -5
- package/build/contracts/IUniswapV2Factory.json +5 -5
- package/build/contracts/IUniswapV2Pair.json +5 -5
- package/build/contracts/IUniswapV2Router.json +5 -5
- package/build/contracts/IWETH.json +5 -5
- package/build/contracts/Interest.json +15 -15
- package/build/contracts/LiquidateOrVaporizeImpl.json +32 -83
- package/build/contracts/LiquidatorProxyHelper.json +23 -23
- package/build/contracts/LiquidatorProxyV1.json +30 -36
- package/build/contracts/LiquidatorProxyV1WithAmm.json +49 -105
- package/build/contracts/Math.json +1 -1
- package/build/contracts/Migrations.json +8 -14
- package/build/contracts/Monetary.json +7 -7
- package/build/contracts/MultiCall.json +8 -14
- package/build/contracts/MultiSig.json +7 -7
- package/build/contracts/OmiseToken.json +8 -8
- package/build/contracts/OnlyDolomiteMargin.json +11 -11
- package/build/contracts/Operation.json +15 -15
- package/build/contracts/OperationImpl.json +39 -47
- package/build/contracts/Ownable.json +1 -1
- package/build/contracts/PartiallyDelayedMultiSig.json +9 -9
- package/build/contracts/PayableProxy.json +17 -23
- package/build/contracts/Permission.json +11 -11
- package/build/contracts/PolynomialInterestSetter.json +13 -13
- package/build/contracts/RecyclableTokenProxy.json +25 -25
- package/build/contracts/ReentrancyGuard.json +1 -1
- package/build/contracts/Require.json +7 -7
- package/build/contracts/SafeERC20.json +1 -1
- package/build/contracts/SafeETH.json +7 -7
- package/build/contracts/SafeLiquidationCallback.json +17 -17
- package/build/contracts/SafeMath.json +1 -1
- package/build/contracts/SignedOperationProxy.json +21 -104
- package/build/contracts/SimpleFeeOwner.json +18 -63
- package/build/contracts/State.json +9 -9
- package/build/contracts/Storage.json +37 -37
- package/build/contracts/TestAmmRebalancerProxy.json +32 -58
- package/build/contracts/TestAutoTrader.json +22 -22
- package/build/contracts/TestBtcUsdChainlinkAggregator.json +10 -10
- package/build/contracts/TestCallee.json +19 -19
- package/build/contracts/TestChainlinkPriceOracleV1.json +10 -94
- package/build/contracts/TestCounter.json +7 -7
- package/build/contracts/TestDaiUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestDolomiteMargin.json +22 -22
- package/build/contracts/TestDoubleExponentInterestSetter.json +10 -10
- package/build/contracts/TestEthUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestExchangeWrapper.json +28 -28
- package/build/contracts/TestInterestSetter.json +13 -13
- package/build/contracts/TestLib.json +22 -22
- package/build/contracts/TestLinkUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestLiquidateCallback.json +719 -719
- package/build/contracts/TestLiquidationCallback.json +13 -13
- package/build/contracts/TestLrcEthChainlinkAggregator.json +11 -11
- package/build/contracts/TestMakerOracle.json +10 -10
- package/build/contracts/TestMaticUsdChainlinkAggregator.json +10 -10
- package/build/contracts/TestOasisDex.json +12 -12
- package/build/contracts/TestOperationImpl.json +14 -14
- package/build/contracts/TestPolynomialInterestSetter.json +10 -10
- package/build/contracts/TestPriceAggregator.json +9 -9
- package/build/contracts/TestPriceOracle.json +13 -13
- package/build/contracts/TestRecyclableToken.json +9 -9
- package/build/contracts/TestSimpleCallee.json +15 -15
- package/build/contracts/TestToken.json +9 -9
- package/build/contracts/TestTrader.json +17 -17
- package/build/contracts/TestUniswapAmmRebalancerProxy.json +16 -16
- package/build/contracts/TestUsdcUsdChainlinkAggregator.json +11 -11
- package/build/contracts/TestWETH.json +9 -9
- package/build/contracts/Time.json +9 -9
- package/build/contracts/Token.json +9 -9
- package/build/contracts/TokenA.json +10 -10
- package/build/contracts/TokenB.json +10 -10
- package/build/contracts/TokenC.json +10 -10
- package/build/contracts/TokenD.json +10 -10
- package/build/contracts/TokenE.json +10 -10
- package/build/contracts/TokenF.json +10 -10
- package/build/contracts/TransferProxy.json +22 -28
- package/build/contracts/TypedSignature.json +9 -9
- package/build/contracts/Types.json +9 -9
- package/build/contracts/UQ112x112.json +7 -7
- package/build/contracts/UniswapV2ERC20.json +7 -7
- package/build/contracts/UniswapV2Factory.json +12 -12
- package/build/contracts/UniswapV2Library.json +20 -20
- package/build/contracts/UniswapV2Pair.json +17 -17
- package/build/contracts/UniswapV2Router02.json +16 -16
- package/build/contracts/WETH9.json +1 -1
- package/contracts/external/amm/DolomiteAmmERC20.sol +135 -0
- package/contracts/external/amm/DolomiteAmmFactory.sol +122 -0
- package/contracts/external/amm/DolomiteAmmPair.sol +573 -0
- package/contracts/external/amm/SimpleFeeOwner.sol +107 -0
- package/contracts/external/helpers/LiquidatorProxyHelper.sol +252 -0
- package/contracts/external/helpers/OnlyDolomiteMargin.sol +63 -0
- package/contracts/external/interestsetters/DoubleExponentInterestSetter.sol +212 -0
- package/contracts/external/interestsetters/PolynomialInterestSetter.sol +205 -0
- package/contracts/external/interfaces/IChainlinkAggregator.sol +33 -0
- package/contracts/external/interfaces/IDolomiteAmmERC20.sol +52 -0
- package/contracts/external/interfaces/IDolomiteAmmFactory.sol +42 -0
- package/contracts/external/interfaces/IDolomiteAmmPair.sol +116 -0
- package/contracts/external/interfaces/IExpiry.sol +70 -0
- package/contracts/external/interfaces/IMakerOracle.sol +52 -0
- package/contracts/external/interfaces/IOasisDex.sol +326 -0
- package/contracts/external/interfaces/ITransferProxy.sol +53 -0
- package/contracts/external/interfaces/IUniswapV2Router.sol +134 -0
- package/contracts/external/lib/AdvancedMath.sol +23 -0
- package/contracts/external/lib/DolomiteAmmLibrary.sol +323 -0
- package/contracts/external/lib/TypedSignature.sol +120 -0
- package/contracts/external/lib/UQ112x112.sol +22 -0
- package/contracts/external/multisig/DelayedMultiSig.sol +206 -0
- package/contracts/external/multisig/MultiSig.sol +571 -0
- package/contracts/external/multisig/PartiallyDelayedMultiSig.sol +174 -0
- package/contracts/external/oracles/ChainlinkPriceOracleV1.sol +197 -0
- package/contracts/external/oracles/TestChainlinkPriceOracleV1.sol +98 -0
- package/contracts/external/proxies/AmmRebalancerProxyV1.sol +465 -0
- package/contracts/external/proxies/DolomiteAmmRouterProxy.sol +877 -0
- package/contracts/external/proxies/LiquidatorProxyV1.sol +507 -0
- package/contracts/external/proxies/LiquidatorProxyV1WithAmm.sol +574 -0
- package/contracts/external/proxies/PayableProxy.sol +146 -0
- package/contracts/external/proxies/RecyclableTokenProxy.sol +463 -0
- package/contracts/external/proxies/SignedOperationProxy.sol +553 -0
- package/contracts/external/proxies/TransferProxy.sol +207 -0
- package/contracts/external/traders/Expiry.sol +532 -0
- package/contracts/external/uniswap-v2/UniswapV2ERC20.sol +118 -0
- package/contracts/external/uniswap-v2/UniswapV2Factory.sol +67 -0
- package/contracts/external/uniswap-v2/UniswapV2Pair.sol +283 -0
- package/contracts/external/uniswap-v2/UniswapV2Router02.sol +566 -0
- package/contracts/external/uniswap-v2/interfaces/IUniswapV2Callee.sol +13 -0
- package/contracts/external/uniswap-v2/interfaces/IUniswapV2Factory.sol +18 -0
- package/contracts/external/uniswap-v2/interfaces/IUniswapV2Pair.sol +67 -0
- package/contracts/external/uniswap-v2/interfaces/IWETH.sol +7 -0
- package/contracts/external/uniswap-v2/libraries/SafeETH.sol +29 -0
- package/contracts/external/uniswap-v2/libraries/UniswapV2Library.sol +117 -0
- package/contracts/external/utils/MultiCall.sol +95 -0
- package/contracts/protocol/impl/artifacts/OperationImpl.json +80 -0
- package/contracts/protocol/impl/artifacts/OperationImpl_metadata.json +193 -0
- package/dist/build/published_contracts/AdminImpl.json +2 -2
- package/dist/build/published_contracts/AmmRebalancerProxyV1.json +5 -0
- package/dist/build/published_contracts/ChainlinkPriceOracleV1.json +1 -1
- package/dist/build/published_contracts/DolomiteAmmFactory.json +1 -1
- package/dist/build/published_contracts/DolomiteAmmRouterProxy.json +1 -1
- package/dist/build/published_contracts/DoubleExponentInterestSetter.json +2 -2
- package/dist/build/published_contracts/Expiry.json +1 -1
- package/dist/build/published_contracts/LiquidatorProxyV1.json +1 -1
- package/dist/build/published_contracts/LiquidatorProxyV1WithAmm.json +1 -1
- package/dist/build/published_contracts/MultiCall.json +1 -1
- package/dist/build/published_contracts/PayableProxy.json +2 -2
- package/dist/build/published_contracts/SignedOperationProxy.json +2 -2
- package/dist/build/published_contracts/SimpleFeeOwner.json +1 -1
- package/dist/build/published_contracts/TestUniswapAmmRebalancerProxy.json +140 -0
- package/dist/build/published_contracts/TransferProxy.json +1 -1
- package/dist/src/lib/Contracts.d.ts +3 -1
- package/dist/src/lib/Contracts.js +7 -3
- package/dist/src/lib/Contracts.js.map +1 -1
- package/package.json +2 -1
|
@@ -448,15 +448,15 @@
|
|
|
448
448
|
"type": "function"
|
|
449
449
|
}
|
|
450
450
|
],
|
|
451
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"contract IPriceOracle\",\"name\":\"priceOracle\",\"type\":\"address\"},{\"internalType\":\"contract IInterestSetter\",\"name\":\"interestSetter\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"marginPremium\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"spreadPremium\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isClosing\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRecyclable\",\"type\":\"bool\"}],\"name\":\"ownerAddMarket\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"marketIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"salvager\",\"type\":\"address\"}],\"name\":\"ownerRemoveMarkets\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"autoTrader\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"special\",\"type\":\"bool\"}],\"name\":\"ownerSetAutoTraderSpecial\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"earningsRate\",\"type\":\"tuple\"}],\"name\":\"ownerSetEarningsRate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ownerSetGlobalOperator\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"contract IInterestSetter\",\"name\":\"interestSetter\",\"type\":\"address\"}],\"name\":\"ownerSetInterestSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isClosing\",\"type\":\"bool\"}],\"name\":\"ownerSetIsClosing\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"spread\",\"type\":\"tuple\"}],\"name\":\"ownerSetLiquidationSpread\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"marginPremium\",\"type\":\"tuple\"}],\"name\":\"ownerSetMarginPremium\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"ratio\",\"type\":\"tuple\"}],\"name\":\"ownerSetMarginRatio\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Monetary.Value\",\"name\":\"minBorrowedValue\",\"type\":\"tuple\"}],\"name\":\"ownerSetMinBorrowedValue\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"contract IPriceOracle\",\"name\":\"priceOracle\",\"type\":\"address\"}],\"name\":\"ownerSetPriceOracle\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"spreadPremium\",\"type\":\"tuple\"}],\"name\":\"ownerSetSpreadPremium\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"ownerWithdrawExcessTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"ownerWithdrawUnsupportedTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Public functions that allow the privileged owner address to manage DolomiteMargin\",\"methods\":{\"isOwner()\":{\"details\":\"Returns true if the caller is the current owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. * NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Admin\"},\"userdoc\":{\"methods\":{\"ownerAddMarket(address,address,address,(uint256),(uint256),bool,bool)\":{\"notice\":\"Add a new market to DolomiteMargin. Must be for a previously-unsupported ERC20 token.\"},\"ownerRemoveMarkets(uint256[],address)\":{\"notice\":\"Removes a market from DolomiteMargin, sends any remaining tokens in this contract to `salvager` and invokes the recyclable callback\"},\"ownerSetAutoTraderSpecial(address,bool)\":{\"notice\":\"Approve (or disapprove) an auto trader that can only be called by a global operator. IE for expirations\"},\"ownerSetEarningsRate((uint256))\":{\"notice\":\"Set the global earnings-rate variable that determines what percentage of the interest paid by borrowers gets passed-on to suppliers.\"},\"ownerSetGlobalOperator(address,bool)\":{\"notice\":\"Approve (or disapprove) an address that is permissioned to be an operator for all accounts in DolomiteMargin. Intended only to approve smart-contracts.\"},\"ownerSetInterestSetter(uint256,address)\":{\"notice\":\"Set the interest-setter for a market.\"},\"ownerSetIsClosing(uint256,bool)\":{\"notice\":\"Set (or unset) the status of a market to \\\"closing\\\". The borrowedValue of a market cannot increase while its status is \\\"closing\\\".\"},\"ownerSetLiquidationSpread((uint256))\":{\"notice\":\"Set the global liquidation spread. This is the spread between oracle prices that incentivizes the liquidation of risky positions.\"},\"ownerSetMarginPremium(uint256,(uint256))\":{\"notice\":\"Set a premium on the minimum margin-ratio for a market. This makes it so that any positions that include this market require a higher collateralization to avoid being liquidated.\"},\"ownerSetMarginRatio((uint256))\":{\"notice\":\"Set the global minimum margin-ratio that every position must maintain to prevent being liquidated.\"},\"ownerSetMinBorrowedValue((uint256))\":{\"notice\":\"Set the global minimum-borrow value which is the minimum value of any new borrow on DolomiteMargin.\"},\"ownerSetPriceOracle(uint256,address)\":{\"notice\":\"Set the price oracle for a market.\"},\"ownerSetSpreadPremium(uint256,(uint256))\":{\"notice\":\"Set a premium on the liquidation spread for a market. This makes it so that any liquidations that include this market have a higher spread than the global default.\"},\"ownerWithdrawExcessTokens(uint256,address)\":{\"notice\":\"Withdraw an ERC20 token for which there is an associated market. Only excess tokens can be withdrawn. The number of excess tokens is calculated by taking the current number of tokens held in DolomiteMargin, adding the number of tokens owed to DolomiteMargin by borrowers, and subtracting the number of tokens owed to suppliers by DolomiteMargin.\"},\"ownerWithdrawUnsupportedTokens(address,address)\":{\"notice\":\"Withdraw an ERC20 token for which there is no associated market.\"}}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/Admin.sol\":\"Admin\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/Admin.sol\":{\"keccak256\":\"0x49bd668fba504841be143e261d4f713f7bd618308608eb5c4f04369feb586b0e\",\"urls\":[\"bzz-raw://635f6f066cb5cffb94dae6b284d040d1f8bf2299bdbb2263188642123c1b965e\",\"dweb:/ipfs/QmPMqmH5PLwARm5Jy3gEhMdgcMKAoV4NjG41QLnWV6U9Ek\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/State.sol\":{\"keccak256\":\"0x4fe464f16c7f490dbe7f43e9672ddf1296852a4a652303a47a91bc7a3c72419b\",\"urls\":[\"bzz-raw://725237be55e03e728e268407c47704af1c93b1fddf277b5e6447d864b9f0bbfb\",\"dweb:/ipfs/QmNZfmH9XMXGdd21DMv2aNU4X152uDVUrpns64kZn1ryVn\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/impl/AdminImpl.sol\":{\"keccak256\":\"0xbcb580fd35399cf0b2e20cdeb3f2bb25ad791a16577a5e9842ebf3fd5b205f67\",\"urls\":[\"bzz-raw://a308759195b5d5d91a76b9509299a68f4d62dc2a363f2546b9f2d28fa8ba3ff0\",\"dweb:/ipfs/QmTgd11YSyCVaMHxQhheQTpvSY3M8123LjozpjaVDvBLx4\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IERC20Detailed.sol\":{\"keccak256\":\"0x22a62e2a8155e70300773721902f4b9118e17aa0bb5d9d1b046050a014cfb223\",\"urls\":[\"bzz-raw://03af737a33c552fbe58f6f1fbd5496854fdc28dd57be4365d56663725c083a18\",\"dweb:/ipfs/QmbgLqGAQEd6tXsZB8QaPNCAMiU6nNzP75wNbKdS65BuUF\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IInterestSetter.sol\":{\"keccak256\":\"0x546825f65490a30e29d0f6446acec49c1e895ce6b33d48ca5c05092725a63a57\",\"urls\":[\"bzz-raw://6ad3013aed985bdf6e6234ae0f7f37e6bba76c3470c33bfa24678cf19b3b412c\",\"dweb:/ipfs/QmfYaSBzxGpgiHoR7ontMJY66S5L26XwkLYoEuzsEjpbQH\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IPriceOracle.sol\":{\"keccak256\":\"0x3f7c3d1397390ea44c6d5e5730d49476431c3df3b28334fe38218de5edc31138\",\"urls\":[\"bzz-raw://63ebf926fca9ce33aaabaf93805686acc25daded1648d6dab59c8c4d05116918\",\"dweb:/ipfs/QmeGkDp7ycYstpfqCYBiqoCYwy876gabx8r42o5koj3H5A\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IRecyclable.sol\":{\"keccak256\":\"0x68843eafdee387608bd2e757c91e90c5044fc3724ea3ad5042117ab4af49d639\",\"urls\":[\"bzz-raw://14b71da16f79b9b5356dfb8d9243a141bb87b209e30fc99c9278c9a01e62a1a0\",\"dweb:/ipfs/QmNhdGQbhSBSJ8dTqSuntaqA3ChhkKpwLuhDfS5UGQ461A\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Account.sol\":{\"keccak256\":\"0x0ab9a3fabc89984dff748af63d4319ee134051de2d7fc560e34ebaac86198396\",\"urls\":[\"bzz-raw://ab67f499a8ef83dc7e7cf7176a0f66eced40fa228eda8dd2d47e066ab985cf42\",\"dweb:/ipfs/QmXRHbsEYxr2Qsfsj5psXGV5LaPZHuzLiEXzSQJ77WSE27\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Bits.sol\":{\"keccak256\":\"0x425bf5764368faca16cc30a64b79d9bbe01fd8150444b58a464971c32450bd85\",\"urls\":[\"bzz-raw://064baf3155da634c5c80cea70bba0dda7a33af934b34f75f596961b4ab9aeafe\",\"dweb:/ipfs/QmTUHXoi9L6CkERyfhFs1jhxU66u2sbc6XRR5cH4TeHEqL\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Cache.sol\":{\"keccak256\":\"0x1e6ff383f285e311d07374edda353e14ac4f29201726b0062a2f046c1a2b482c\",\"urls\":[\"bzz-raw://fd11c5db01039bf2c95f3561b08d271b80b7b1cb9fd7f75da887f7609807c5a7\",\"dweb:/ipfs/QmcY6CugdEHaYUa8ZKSnUDhvtVuoLfpDscZcmC91koAn1t\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Decimal.sol\":{\"keccak256\":\"0x66990bbe3c58d0edf57d3f67ab5280e2a53958ce44f75c335c4c50542321bccb\",\"urls\":[\"bzz-raw://724cfdb5c99121aab5262679e46766a2883e344749870d7dbfa92d1617f68bf2\",\"dweb:/ipfs/QmYjAsS45f6UG2u3zuTks2HVfMYtyFCVMgUvD7Gt7XtU3R\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/EnumerableSet.sol\":{\"keccak256\":\"0x9710b0ab43cc2d964d8722a0aabbedbf7e9d4756dcc0b4ab7c46c1ee68653042\",\"urls\":[\"bzz-raw://2405593d37f0f224bfca556f01634a9755bb0ed626f74dd15293106a8b4dd7d3\",\"dweb:/ipfs/QmTZ16S336jsoDnK5p3vAZRzimBkmdEJibncHVBJxBt469\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Interest.sol\":{\"keccak256\":\"0x73e75454568c5dfc3bdcf7dbf2ddce6ab8d3d317618bc1f1957f7667e15d3799\",\"urls\":[\"bzz-raw://7b1c8a9a79c8ffdbb0fa633f713ae3dfeac93b31d2b1639614ac32d473fb8250\",\"dweb:/ipfs/QmfARP93W2mgeVwD9Lkd3yVmbCLF2Mos7o8HJ1x6WYQmxZ\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Math.sol\":{\"keccak256\":\"0x0c0c913b6ccdb69063f9ec84879fcad20a1ee6f44402c9f5ec2b4f5b9f2fa16b\",\"urls\":[\"bzz-raw://89b32eefb57e5e63ad8c6e079ae7bf2d2c8622776cd45af0cf304e1cafd6e078\",\"dweb:/ipfs/Qmcj7yRnYuTgKC3ZqZqe8rynHGYVDS3UrFExcVGcqeaDHY\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Monetary.sol\":{\"keccak256\":\"0x5257274f2d4d3605f3e97ec45fb902111fe9a22506f0b4cf308ea933bc81bfe2\",\"urls\":[\"bzz-raw://85b8023b78805063a2ec8d376f1f5983994eabd96efd8ceadb0224dbb71c5678\",\"dweb:/ipfs/QmaDhzCzRqsuHuJfhToEC4pATQHwhh7yWWsjwfuRzFT1kG\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Storage.sol\":{\"keccak256\":\"0xf930fbde3ab43ec8f079dbad062453b502542f53b7eec670c8e86c7a2e47dd9a\",\"urls\":[\"bzz-raw://e1c402fc55471e8372be478e99f91c28373f096e31f0ef1d5072dfdb81541c29\",\"dweb:/ipfs/QmTc8WSfFCbxNQqNpq1vptUVFxteKQ8HWEhyXREyPZ2neu\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Time.sol\":{\"keccak256\":\"0x233d6ebf965711bf980f4bb2e672fb1a11b4b879fd41c884b3c2b704417d0d0c\",\"urls\":[\"bzz-raw://6478ff81706d531f9438b96274a7b904abbbd9c631540c68c6a89c3accf27abf\",\"dweb:/ipfs/QmWe9vkz3qwVjrcbmcTL8wgkjLPsrEqxcqPJL9ujM8PPbp\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Token.sol\":{\"keccak256\":\"0xd7bcae9e3c570544fc946a00cc7695106a64c20bc130d0183612c0410a531d19\",\"urls\":[\"bzz-raw://0ff5ffd6abb9ed223a64128c131afd962bec07fb9867cb62593906b339c76920\",\"dweb:/ipfs/QmbTrJL4bekvBqqaw6wXnBhYzS9uAqULSWF2VzW4cdfsM5\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Types.sol\":{\"keccak256\":\"0xab134538648a2e223a7fe61db03c14f687657a5d37147f93c9088f11735aa311\",\"urls\":[\"bzz-raw://79dc7d2b30576d2349b99267642ac8d5fb7939c920b8d8045379d3614238bdc3\",\"dweb:/ipfs/QmaQJYg1nirHoWSC6G38Cjsk9pZBzEaNrGXKqTsvAzbyES\"]},\"@openzeppelin/contracts/GSN/Context.sol\":{\"keccak256\":\"0x90a3995645af7562d84b9d69363ffa5ae7217714ab61e951bf7bc450f40e4061\",\"urls\":[\"bzz-raw://216ef9d6b614db4eb46970b4e84903f2534a45572dd30a79f0041f1a5830f436\",\"dweb:/ipfs/QmNPrJ4MWKUAWzKXpUqeyKRUfosaoANZAqXgvepdrCwZAG\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]},\"@openzeppelin/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x6fb9d7889769d7cc161225f9ef7a90e468ba9788b253816f8d8b6894d3472c24\",\"urls\":[\"bzz-raw://cf4c00fc3c37cc5acf0c82ec6fd97bab67d72c2567fdc0ebf023d9c09b30a08e\",\"dweb:/ipfs/Qmb7TChG6DsEDX7LooJ4vmxot19f7VXX8S1zUGPeJTWbwZ\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzz-raw://59fd025151435da35faa8093a5c7a17de02de9d08ad27275c5cdf05050820d91\",\"dweb:/ipfs/QmQMvwEcPhoRXzbXyrdoeRtvLoifUW9Qh7Luho7bmUPRkc\"]},\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xb63221b23818d622bfd83d18e0968307e4fcb7a35536bdceded76e1cf8349acd\",\"urls\":[\"bzz-raw://44e1e8c22362c4708a8c3362735f1465f5b05e2f7315e16c7010d694ce019d73\",\"dweb:/ipfs/QmWj9g8X1hxkXRre2kwkEjLBetjuzmSbWHD81bsSojnBkS\"]}},\"version\":1}",
|
|
452
|
-
"bytecode": "0x608060405260006100176001600160e01b0361007d16565b600e80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600e805460ff60a01b1916600160a01b179055610081565b3390565b6117f2806100906000396000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c80638da5cb5b116100cd578063e8e72f7511610081578063ef6957d011610066578063ef6957d014610297578063f2901ae2146102aa578063f2fde38b146102bd57610151565b8063e8e72f7514610271578063ec6e39871461028457610151565b80638f6bc659116100b25780638f6bc65914610238578063c0bb72b71461024b578063d36cca901461025e57610151565b80638da5cb5b1461020e5780638f32d59b1461022357610151565b80633063bce2116101245780634be87414116101095780634be87414146101e0578063715018a6146101f35780638439dd92146101fb57610151565b80633063bce2146101ba578063387a498a146101cd57610151565b8063042069d614610156578063121fb72f1461016b5780632a5608451461017e5780632e822af3146101a7575b600080fd5b610169610164366004611343565b6102d0565b005b610169610179366004611313565b6103cf565b61019161018c36600461115d565b61047e565b60405161019e91906116e0565b60405180910390f35b6101696101b5366004611299565b61059a565b6101696101c8366004611299565b61068d565b6101696101db366004611299565b61073a565b6101696101ee366004611343565b6107e7565b610169610896565b6101696102093660046111c7565b610929565b610216610a2e565b60405161019e91906114f6565b61022b610a4a565b60405161019e9190611504565b6101916102463660046112d5565b610a8a565b610169610259366004611299565b610b3b565b61016961026c366004611263565b610be8565b61016961027f366004611313565b610c97565b610169610292366004611197565b610d46565b6101696102a53660046112f4565b610df5565b6101696102b8366004611197565b610ea4565b6101696102cb366004611137565b610f53565b6102d8610a4a565b6102fd5760405162461bcd60e51b81526004016102f490611522565b60405180910390fd5b600e54600160a01b900460ff166103265760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8854ab3e00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638854ab3e9061038890600090869086906004016116b8565b60006040518083038186803b1580156103a057600080fd5b505af41580156103b4573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b17905550505050565b6103d7610a4a565b6103f35760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff1661041c5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517faa92e34800000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063aa92e348906103889060009086908690600401611690565b6000610488610a4a565b6104a45760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166104cd5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fdd32998a00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063dd32998a9061052f9060009087908790600401611542565b60206040518083038186803b15801561054757600080fd5b505af415801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061057f91908101906112b7565b9050600e805460ff60a01b1916600160a01b17905592915050565b6105a2610a4a565b6105be5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166105e75760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517ff9cacc4c00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063f9cacc4c90610647906000908590600401611638565b60006040518083038186803b15801561065f57600080fd5b505af4158015610673573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050565b610695610a4a565b6106b15760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166106da5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f0f44e6bc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90630f44e6bc90610647906000908590600401611638565b610742610a4a565b61075e5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166107875760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f311401d000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063311401d090610647906000908590600401611638565b6107ef610a4a565b61080b5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166108345760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f7335079b00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90637335079b9061038890600090869086906004016116b8565b61089e610a4a565b6108ba5760405162461bcd60e51b81526004016102f490611522565b600e5460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610931610a4a565b61094d5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166109765760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f4f32fb2700000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90634f32fb27906109e2906000908b908b908b908b908b908b908b90600401611592565b60006040518083038186803b1580156109fa57600080fd5b505af4158015610a0e573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050505050505050565b600e5473ffffffffffffffffffffffffffffffffffffffff1690565b600e5460009073ffffffffffffffffffffffffffffffffffffffff16610a6e610f83565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b6000610a94610a4a565b610ab05760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ad95760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fb25328e000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063b25328e09061052f906000908790879060040161165a565b610b43610a4a565b610b5f5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610b885760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f54dd351600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906354dd351690610647906000908590600401611638565b610bf0610a4a565b610c0c5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610c355760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fd963729100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063d9637291906103889060009086908690600401611609565b610c9f610a4a565b610cbb5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ce45760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8c5dabd100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638c5dabd1906103889060009086908690600401611690565b610d4e610a4a565b610d6a5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610d935760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f3c0c9ddc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90633c0c9ddc90610388906000908690869060040161156a565b610dfd610a4a565b610e195760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610e425760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f10c87b0600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906310c87b06906103889060009086908690600401611675565b610eac610a4a565b610ec85760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ef15760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fe80f802400000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063e80f802490610388906000908690869060040161156a565b610f5b610a4a565b610f775760405162461bcd60e51b81526004016102f490611522565b610f8081610f87565b50565b3390565b73ffffffffffffffffffffffffffffffffffffffff8116610fba5760405162461bcd60e51b81526004016102f490611512565b600e5460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803561105381611780565b92915050565b600082601f83011261106a57600080fd5b813561107d61107882611715565b6116ee565b915081818352602084019350602081019050838560208402820111156110a257600080fd5b60005b838110156110ce57816110b88882611121565b84525060209283019291909101906001016110a5565b5050505092915050565b803561105381611794565b80356110538161179d565b60006020828403121561110057600080fd5b61110a60206116ee565b905060006111188484611121565b82525092915050565b8035611053816117a6565b8051611053816117a6565b60006020828403121561114957600080fd5b60006111558484611048565b949350505050565b6000806040838503121561117057600080fd5b600061117c8585611048565b925050602061118d85828601611048565b9150509250929050565b600080604083850312156111aa57600080fd5b60006111b68585611048565b925050602061118d858286016110d8565b600080600080600080600060e0888a0312156111e257600080fd5b60006111ee8a8a611048565b97505060206111ff8a828b016110e3565b96505060406112108a828b016110e3565b95505060606112218a828b016110ee565b94505060806112328a828b016110ee565b93505060a06112438a828b016110d8565b92505060c06112548a828b016110d8565b91505092959891949750929550565b6000806040838503121561127657600080fd5b823567ffffffffffffffff81111561128d57600080fd5b61117c85828601611059565b6000602082840312156112ab57600080fd5b600061115584846110ee565b6000602082840312156112c957600080fd5b6000611155848461112c565b600080604083850312156112e857600080fd5b600061117c8585611121565b6000806040838503121561130757600080fd5b60006111b68585611121565b6000806040838503121561132657600080fd5b60006113328585611121565b925050602061118d858286016110e3565b6000806040838503121561135657600080fd5b60006113628585611121565b925050602061118d858286016110ee565b600061137f83836114ed565b505060200190565b61139081611749565b82525050565b60006113a18261173c565b6113ab8185611740565b93506113b683611736565b8060005b838110156113e45781516113ce8882611373565b97506113d983611736565b9250506001016113ba565b509495945050505050565b61139081611754565b61139081611759565b600061140e602683611740565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015260400192915050565b600061146d602083611740565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006114a6601f83611740565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b805160208301906114e384826114ed565b50505050565b9052565b6113908161177d565b602081016110538284611387565b6020810161105382846113ef565b6020808252810161105381611401565b6020808252810161105381611460565b6020808252810161105381611499565b6060810161155082866114e9565b61155d6020830185611387565b6111556040830184611387565b6060810161157882866114e9565b6115856020830185611387565b61115560408301846113ef565b61010081016115a1828b6114e9565b6115ae602083018a611387565b6115bb60408301896113f8565b6115c860608301886113f8565b6115d560808301876114d2565b6115e260a08301866114d2565b6115ef60c08301856113ef565b6115fc60e08301846113ef565b9998505050505050505050565b6060810161161782866114e9565b81810360208301526116298185611396565b90506111556040830184611387565b6040810161164682856114e9565b61165360208301846114d2565b9392505050565b6060810161166882866114e9565b61155d60208301856114ed565b6060810161168382866114e9565b61158560208301856114ed565b6060810161169e82866114e9565b6116ab60208301856114ed565b61115560408301846113f8565b606081016116c682866114e9565b6116d360208301856114ed565b61115560408301846114d2565b6020810161105382846114ed565b60405181810167ffffffffffffffff8111828210171561170d57600080fd5b604052919050565b600067ffffffffffffffff82111561172c57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b600061105382611764565b151590565b600061105382611749565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b61178981611749565b8114610f8057600080fd5b61178981611754565b61178981611759565b6117898161177d56fea365627a7a72315820b674f1054f70d849f5b29fb50169b0cb89c0d87719e3eb7457c3bb85e44f6bbb6c6578706572696d656e74616cf564736f6c63430005100040",
|
|
453
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101515760003560e01c80638da5cb5b116100cd578063e8e72f7511610081578063ef6957d011610066578063ef6957d014610297578063f2901ae2146102aa578063f2fde38b146102bd57610151565b8063e8e72f7514610271578063ec6e39871461028457610151565b80638f6bc659116100b25780638f6bc65914610238578063c0bb72b71461024b578063d36cca901461025e57610151565b80638da5cb5b1461020e5780638f32d59b1461022357610151565b80633063bce2116101245780634be87414116101095780634be87414146101e0578063715018a6146101f35780638439dd92146101fb57610151565b80633063bce2146101ba578063387a498a146101cd57610151565b8063042069d614610156578063121fb72f1461016b5780632a5608451461017e5780632e822af3146101a7575b600080fd5b610169610164366004611343565b6102d0565b005b610169610179366004611313565b6103cf565b61019161018c36600461115d565b61047e565b60405161019e91906116e0565b60405180910390f35b6101696101b5366004611299565b61059a565b6101696101c8366004611299565b61068d565b6101696101db366004611299565b61073a565b6101696101ee366004611343565b6107e7565b610169610896565b6101696102093660046111c7565b610929565b610216610a2e565b60405161019e91906114f6565b61022b610a4a565b60405161019e9190611504565b6101916102463660046112d5565b610a8a565b610169610259366004611299565b610b3b565b61016961026c366004611263565b610be8565b61016961027f366004611313565b610c97565b610169610292366004611197565b610d46565b6101696102a53660046112f4565b610df5565b6101696102b8366004611197565b610ea4565b6101696102cb366004611137565b610f53565b6102d8610a4a565b6102fd5760405162461bcd60e51b81526004016102f490611522565b60405180910390fd5b600e54600160a01b900460ff166103265760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8854ab3e00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638854ab3e9061038890600090869086906004016116b8565b60006040518083038186803b1580156103a057600080fd5b505af41580156103b4573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b17905550505050565b6103d7610a4a565b6103f35760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff1661041c5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517faa92e34800000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063aa92e348906103889060009086908690600401611690565b6000610488610a4a565b6104a45760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166104cd5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fdd32998a00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063dd32998a9061052f9060009087908790600401611542565b60206040518083038186803b15801561054757600080fd5b505af415801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061057f91908101906112b7565b9050600e805460ff60a01b1916600160a01b17905592915050565b6105a2610a4a565b6105be5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166105e75760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517ff9cacc4c00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063f9cacc4c90610647906000908590600401611638565b60006040518083038186803b15801561065f57600080fd5b505af4158015610673573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050565b610695610a4a565b6106b15760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166106da5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f0f44e6bc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90630f44e6bc90610647906000908590600401611638565b610742610a4a565b61075e5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166107875760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f311401d000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063311401d090610647906000908590600401611638565b6107ef610a4a565b61080b5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166108345760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f7335079b00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90637335079b9061038890600090869086906004016116b8565b61089e610a4a565b6108ba5760405162461bcd60e51b81526004016102f490611522565b600e5460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610931610a4a565b61094d5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166109765760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f4f32fb2700000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90634f32fb27906109e2906000908b908b908b908b908b908b908b90600401611592565b60006040518083038186803b1580156109fa57600080fd5b505af4158015610a0e573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050505050505050565b600e5473ffffffffffffffffffffffffffffffffffffffff1690565b600e5460009073ffffffffffffffffffffffffffffffffffffffff16610a6e610f83565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b6000610a94610a4a565b610ab05760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ad95760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fb25328e000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063b25328e09061052f906000908790879060040161165a565b610b43610a4a565b610b5f5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610b885760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f54dd351600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906354dd351690610647906000908590600401611638565b610bf0610a4a565b610c0c5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610c355760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fd963729100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063d9637291906103889060009086908690600401611609565b610c9f610a4a565b610cbb5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ce45760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8c5dabd100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638c5dabd1906103889060009086908690600401611690565b610d4e610a4a565b610d6a5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610d935760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f3c0c9ddc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90633c0c9ddc90610388906000908690869060040161156a565b610dfd610a4a565b610e195760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610e425760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f10c87b0600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906310c87b06906103889060009086908690600401611675565b610eac610a4a565b610ec85760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ef15760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fe80f802400000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063e80f802490610388906000908690869060040161156a565b610f5b610a4a565b610f775760405162461bcd60e51b81526004016102f490611522565b610f8081610f87565b50565b3390565b73ffffffffffffffffffffffffffffffffffffffff8116610fba5760405162461bcd60e51b81526004016102f490611512565b600e5460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803561105381611780565b92915050565b600082601f83011261106a57600080fd5b813561107d61107882611715565b6116ee565b915081818352602084019350602081019050838560208402820111156110a257600080fd5b60005b838110156110ce57816110b88882611121565b84525060209283019291909101906001016110a5565b5050505092915050565b803561105381611794565b80356110538161179d565b60006020828403121561110057600080fd5b61110a60206116ee565b905060006111188484611121565b82525092915050565b8035611053816117a6565b8051611053816117a6565b60006020828403121561114957600080fd5b60006111558484611048565b949350505050565b6000806040838503121561117057600080fd5b600061117c8585611048565b925050602061118d85828601611048565b9150509250929050565b600080604083850312156111aa57600080fd5b60006111b68585611048565b925050602061118d858286016110d8565b600080600080600080600060e0888a0312156111e257600080fd5b60006111ee8a8a611048565b97505060206111ff8a828b016110e3565b96505060406112108a828b016110e3565b95505060606112218a828b016110ee565b94505060806112328a828b016110ee565b93505060a06112438a828b016110d8565b92505060c06112548a828b016110d8565b91505092959891949750929550565b6000806040838503121561127657600080fd5b823567ffffffffffffffff81111561128d57600080fd5b61117c85828601611059565b6000602082840312156112ab57600080fd5b600061115584846110ee565b6000602082840312156112c957600080fd5b6000611155848461112c565b600080604083850312156112e857600080fd5b600061117c8585611121565b6000806040838503121561130757600080fd5b60006111b68585611121565b6000806040838503121561132657600080fd5b60006113328585611121565b925050602061118d858286016110e3565b6000806040838503121561135657600080fd5b60006113628585611121565b925050602061118d858286016110ee565b600061137f83836114ed565b505060200190565b61139081611749565b82525050565b60006113a18261173c565b6113ab8185611740565b93506113b683611736565b8060005b838110156113e45781516113ce8882611373565b97506113d983611736565b9250506001016113ba565b509495945050505050565b61139081611754565b61139081611759565b600061140e602683611740565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015260400192915050565b600061146d602083611740565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006114a6601f83611740565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b805160208301906114e384826114ed565b50505050565b9052565b6113908161177d565b602081016110538284611387565b6020810161105382846113ef565b6020808252810161105381611401565b6020808252810161105381611460565b6020808252810161105381611499565b6060810161155082866114e9565b61155d6020830185611387565b6111556040830184611387565b6060810161157882866114e9565b6115856020830185611387565b61115560408301846113ef565b61010081016115a1828b6114e9565b6115ae602083018a611387565b6115bb60408301896113f8565b6115c860608301886113f8565b6115d560808301876114d2565b6115e260a08301866114d2565b6115ef60c08301856113ef565b6115fc60e08301846113ef565b9998505050505050505050565b6060810161161782866114e9565b81810360208301526116298185611396565b90506111556040830184611387565b6040810161164682856114e9565b61165360208301846114d2565b9392505050565b6060810161166882866114e9565b61155d60208301856114ed565b6060810161168382866114e9565b61158560208301856114ed565b6060810161169e82866114e9565b6116ab60208301856114ed565b61115560408301846113f8565b606081016116c682866114e9565b6116d360208301856114ed565b61115560408301846114d2565b6020810161105382846114ed565b60405181810167ffffffffffffffff8111828210171561170d57600080fd5b604052919050565b600067ffffffffffffffff82111561172c57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b600061105382611764565b151590565b600061105382611749565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b61178981611749565b8114610f8057600080fd5b61178981611754565b61178981611759565b6117898161177d56fea365627a7a72315820b674f1054f70d849f5b29fb50169b0cb89c0d87719e3eb7457c3bb85e44f6bbb6c6578706572696d656e74616cf564736f6c63430005100040",
|
|
451
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"contract IPriceOracle\",\"name\":\"priceOracle\",\"type\":\"address\"},{\"internalType\":\"contract IInterestSetter\",\"name\":\"interestSetter\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"marginPremium\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"spreadPremium\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isClosing\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isRecyclable\",\"type\":\"bool\"}],\"name\":\"ownerAddMarket\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"marketIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"salvager\",\"type\":\"address\"}],\"name\":\"ownerRemoveMarkets\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"autoTrader\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"special\",\"type\":\"bool\"}],\"name\":\"ownerSetAutoTraderSpecial\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"earningsRate\",\"type\":\"tuple\"}],\"name\":\"ownerSetEarningsRate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ownerSetGlobalOperator\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"contract IInterestSetter\",\"name\":\"interestSetter\",\"type\":\"address\"}],\"name\":\"ownerSetInterestSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isClosing\",\"type\":\"bool\"}],\"name\":\"ownerSetIsClosing\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"spread\",\"type\":\"tuple\"}],\"name\":\"ownerSetLiquidationSpread\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"marginPremium\",\"type\":\"tuple\"}],\"name\":\"ownerSetMarginPremium\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"ratio\",\"type\":\"tuple\"}],\"name\":\"ownerSetMarginRatio\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Monetary.Value\",\"name\":\"minBorrowedValue\",\"type\":\"tuple\"}],\"name\":\"ownerSetMinBorrowedValue\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"contract IPriceOracle\",\"name\":\"priceOracle\",\"type\":\"address\"}],\"name\":\"ownerSetPriceOracle\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Decimal.D256\",\"name\":\"spreadPremium\",\"type\":\"tuple\"}],\"name\":\"ownerSetSpreadPremium\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"marketId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"ownerWithdrawExcessTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"ownerWithdrawUnsupportedTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Public functions that allow the privileged owner address to manage DolomiteMargin\",\"methods\":{\"isOwner()\":{\"details\":\"Returns true if the caller is the current owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. * NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Admin\"},\"userdoc\":{\"methods\":{\"ownerAddMarket(address,address,address,(uint256),(uint256),bool,bool)\":{\"notice\":\"Add a new market to DolomiteMargin. Must be for a previously-unsupported ERC20 token.\"},\"ownerRemoveMarkets(uint256[],address)\":{\"notice\":\"Removes a market from DolomiteMargin, sends any remaining tokens in this contract to `salvager` and invokes the recyclable callback\"},\"ownerSetAutoTraderSpecial(address,bool)\":{\"notice\":\"Approve (or disapprove) an auto trader that can only be called by a global operator. IE for expirations\"},\"ownerSetEarningsRate((uint256))\":{\"notice\":\"Set the global earnings-rate variable that determines what percentage of the interest paid by borrowers gets passed-on to suppliers.\"},\"ownerSetGlobalOperator(address,bool)\":{\"notice\":\"Approve (or disapprove) an address that is permissioned to be an operator for all accounts in DolomiteMargin. Intended only to approve smart-contracts.\"},\"ownerSetInterestSetter(uint256,address)\":{\"notice\":\"Set the interest-setter for a market.\"},\"ownerSetIsClosing(uint256,bool)\":{\"notice\":\"Set (or unset) the status of a market to \\\"closing\\\". The borrowedValue of a market cannot increase while its status is \\\"closing\\\".\"},\"ownerSetLiquidationSpread((uint256))\":{\"notice\":\"Set the global liquidation spread. This is the spread between oracle prices that incentivizes the liquidation of risky positions.\"},\"ownerSetMarginPremium(uint256,(uint256))\":{\"notice\":\"Set a premium on the minimum margin-ratio for a market. This makes it so that any positions that include this market require a higher collateralization to avoid being liquidated.\"},\"ownerSetMarginRatio((uint256))\":{\"notice\":\"Set the global minimum margin-ratio that every position must maintain to prevent being liquidated.\"},\"ownerSetMinBorrowedValue((uint256))\":{\"notice\":\"Set the global minimum-borrow value which is the minimum value of any new borrow on DolomiteMargin.\"},\"ownerSetPriceOracle(uint256,address)\":{\"notice\":\"Set the price oracle for a market.\"},\"ownerSetSpreadPremium(uint256,(uint256))\":{\"notice\":\"Set a premium on the liquidation spread for a market. This makes it so that any liquidations that include this market have a higher spread than the global default.\"},\"ownerWithdrawExcessTokens(uint256,address)\":{\"notice\":\"Withdraw an ERC20 token for which there is an associated market. Only excess tokens can be withdrawn. The number of excess tokens is calculated by taking the current number of tokens held in DolomiteMargin, adding the number of tokens owed to DolomiteMargin by borrowers, and subtracting the number of tokens owed to suppliers by DolomiteMargin.\"},\"ownerWithdrawUnsupportedTokens(address,address)\":{\"notice\":\"Withdraw an ERC20 token for which there is no associated market.\"}}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/Admin.sol\":\"Admin\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/Admin.sol\":{\"keccak256\":\"0x49bd668fba504841be143e261d4f713f7bd618308608eb5c4f04369feb586b0e\",\"urls\":[\"bzz-raw://635f6f066cb5cffb94dae6b284d040d1f8bf2299bdbb2263188642123c1b965e\",\"dweb:/ipfs/QmPMqmH5PLwARm5Jy3gEhMdgcMKAoV4NjG41QLnWV6U9Ek\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/State.sol\":{\"keccak256\":\"0x4fe464f16c7f490dbe7f43e9672ddf1296852a4a652303a47a91bc7a3c72419b\",\"urls\":[\"bzz-raw://725237be55e03e728e268407c47704af1c93b1fddf277b5e6447d864b9f0bbfb\",\"dweb:/ipfs/QmNZfmH9XMXGdd21DMv2aNU4X152uDVUrpns64kZn1ryVn\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/impl/AdminImpl.sol\":{\"keccak256\":\"0xbcb580fd35399cf0b2e20cdeb3f2bb25ad791a16577a5e9842ebf3fd5b205f67\",\"urls\":[\"bzz-raw://a308759195b5d5d91a76b9509299a68f4d62dc2a363f2546b9f2d28fa8ba3ff0\",\"dweb:/ipfs/QmTgd11YSyCVaMHxQhheQTpvSY3M8123LjozpjaVDvBLx4\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IERC20Detailed.sol\":{\"keccak256\":\"0x22a62e2a8155e70300773721902f4b9118e17aa0bb5d9d1b046050a014cfb223\",\"urls\":[\"bzz-raw://03af737a33c552fbe58f6f1fbd5496854fdc28dd57be4365d56663725c083a18\",\"dweb:/ipfs/QmbgLqGAQEd6tXsZB8QaPNCAMiU6nNzP75wNbKdS65BuUF\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol\":{\"keccak256\":\"0x546825f65490a30e29d0f6446acec49c1e895ce6b33d48ca5c05092725a63a57\",\"urls\":[\"bzz-raw://6ad3013aed985bdf6e6234ae0f7f37e6bba76c3470c33bfa24678cf19b3b412c\",\"dweb:/ipfs/QmfYaSBzxGpgiHoR7ontMJY66S5L26XwkLYoEuzsEjpbQH\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IPriceOracle.sol\":{\"keccak256\":\"0x3f7c3d1397390ea44c6d5e5730d49476431c3df3b28334fe38218de5edc31138\",\"urls\":[\"bzz-raw://63ebf926fca9ce33aaabaf93805686acc25daded1648d6dab59c8c4d05116918\",\"dweb:/ipfs/QmeGkDp7ycYstpfqCYBiqoCYwy876gabx8r42o5koj3H5A\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IRecyclable.sol\":{\"keccak256\":\"0x68843eafdee387608bd2e757c91e90c5044fc3724ea3ad5042117ab4af49d639\",\"urls\":[\"bzz-raw://14b71da16f79b9b5356dfb8d9243a141bb87b209e30fc99c9278c9a01e62a1a0\",\"dweb:/ipfs/QmNhdGQbhSBSJ8dTqSuntaqA3ChhkKpwLuhDfS5UGQ461A\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Account.sol\":{\"keccak256\":\"0x0ab9a3fabc89984dff748af63d4319ee134051de2d7fc560e34ebaac86198396\",\"urls\":[\"bzz-raw://ab67f499a8ef83dc7e7cf7176a0f66eced40fa228eda8dd2d47e066ab985cf42\",\"dweb:/ipfs/QmXRHbsEYxr2Qsfsj5psXGV5LaPZHuzLiEXzSQJ77WSE27\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Bits.sol\":{\"keccak256\":\"0x425bf5764368faca16cc30a64b79d9bbe01fd8150444b58a464971c32450bd85\",\"urls\":[\"bzz-raw://064baf3155da634c5c80cea70bba0dda7a33af934b34f75f596961b4ab9aeafe\",\"dweb:/ipfs/QmTUHXoi9L6CkERyfhFs1jhxU66u2sbc6XRR5cH4TeHEqL\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Cache.sol\":{\"keccak256\":\"0x1e6ff383f285e311d07374edda353e14ac4f29201726b0062a2f046c1a2b482c\",\"urls\":[\"bzz-raw://fd11c5db01039bf2c95f3561b08d271b80b7b1cb9fd7f75da887f7609807c5a7\",\"dweb:/ipfs/QmcY6CugdEHaYUa8ZKSnUDhvtVuoLfpDscZcmC91koAn1t\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Decimal.sol\":{\"keccak256\":\"0x66990bbe3c58d0edf57d3f67ab5280e2a53958ce44f75c335c4c50542321bccb\",\"urls\":[\"bzz-raw://724cfdb5c99121aab5262679e46766a2883e344749870d7dbfa92d1617f68bf2\",\"dweb:/ipfs/QmYjAsS45f6UG2u3zuTks2HVfMYtyFCVMgUvD7Gt7XtU3R\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/EnumerableSet.sol\":{\"keccak256\":\"0x9710b0ab43cc2d964d8722a0aabbedbf7e9d4756dcc0b4ab7c46c1ee68653042\",\"urls\":[\"bzz-raw://2405593d37f0f224bfca556f01634a9755bb0ed626f74dd15293106a8b4dd7d3\",\"dweb:/ipfs/QmTZ16S336jsoDnK5p3vAZRzimBkmdEJibncHVBJxBt469\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol\":{\"keccak256\":\"0x73e75454568c5dfc3bdcf7dbf2ddce6ab8d3d317618bc1f1957f7667e15d3799\",\"urls\":[\"bzz-raw://7b1c8a9a79c8ffdbb0fa633f713ae3dfeac93b31d2b1639614ac32d473fb8250\",\"dweb:/ipfs/QmfARP93W2mgeVwD9Lkd3yVmbCLF2Mos7o8HJ1x6WYQmxZ\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Math.sol\":{\"keccak256\":\"0x0c0c913b6ccdb69063f9ec84879fcad20a1ee6f44402c9f5ec2b4f5b9f2fa16b\",\"urls\":[\"bzz-raw://89b32eefb57e5e63ad8c6e079ae7bf2d2c8622776cd45af0cf304e1cafd6e078\",\"dweb:/ipfs/Qmcj7yRnYuTgKC3ZqZqe8rynHGYVDS3UrFExcVGcqeaDHY\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol\":{\"keccak256\":\"0x5257274f2d4d3605f3e97ec45fb902111fe9a22506f0b4cf308ea933bc81bfe2\",\"urls\":[\"bzz-raw://85b8023b78805063a2ec8d376f1f5983994eabd96efd8ceadb0224dbb71c5678\",\"dweb:/ipfs/QmaDhzCzRqsuHuJfhToEC4pATQHwhh7yWWsjwfuRzFT1kG\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Storage.sol\":{\"keccak256\":\"0xf930fbde3ab43ec8f079dbad062453b502542f53b7eec670c8e86c7a2e47dd9a\",\"urls\":[\"bzz-raw://e1c402fc55471e8372be478e99f91c28373f096e31f0ef1d5072dfdb81541c29\",\"dweb:/ipfs/QmTc8WSfFCbxNQqNpq1vptUVFxteKQ8HWEhyXREyPZ2neu\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Time.sol\":{\"keccak256\":\"0x233d6ebf965711bf980f4bb2e672fb1a11b4b879fd41c884b3c2b704417d0d0c\",\"urls\":[\"bzz-raw://6478ff81706d531f9438b96274a7b904abbbd9c631540c68c6a89c3accf27abf\",\"dweb:/ipfs/QmWe9vkz3qwVjrcbmcTL8wgkjLPsrEqxcqPJL9ujM8PPbp\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Token.sol\":{\"keccak256\":\"0xd7bcae9e3c570544fc946a00cc7695106a64c20bc130d0183612c0410a531d19\",\"urls\":[\"bzz-raw://0ff5ffd6abb9ed223a64128c131afd962bec07fb9867cb62593906b339c76920\",\"dweb:/ipfs/QmbTrJL4bekvBqqaw6wXnBhYzS9uAqULSWF2VzW4cdfsM5\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol\":{\"keccak256\":\"0xab134538648a2e223a7fe61db03c14f687657a5d37147f93c9088f11735aa311\",\"urls\":[\"bzz-raw://79dc7d2b30576d2349b99267642ac8d5fb7939c920b8d8045379d3614238bdc3\",\"dweb:/ipfs/QmaQJYg1nirHoWSC6G38Cjsk9pZBzEaNrGXKqTsvAzbyES\"]},\"@openzeppelin/contracts/GSN/Context.sol\":{\"keccak256\":\"0x90a3995645af7562d84b9d69363ffa5ae7217714ab61e951bf7bc450f40e4061\",\"urls\":[\"bzz-raw://216ef9d6b614db4eb46970b4e84903f2534a45572dd30a79f0041f1a5830f436\",\"dweb:/ipfs/QmNPrJ4MWKUAWzKXpUqeyKRUfosaoANZAqXgvepdrCwZAG\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]},\"@openzeppelin/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x6fb9d7889769d7cc161225f9ef7a90e468ba9788b253816f8d8b6894d3472c24\",\"urls\":[\"bzz-raw://cf4c00fc3c37cc5acf0c82ec6fd97bab67d72c2567fdc0ebf023d9c09b30a08e\",\"dweb:/ipfs/Qmb7TChG6DsEDX7LooJ4vmxot19f7VXX8S1zUGPeJTWbwZ\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzz-raw://59fd025151435da35faa8093a5c7a17de02de9d08ad27275c5cdf05050820d91\",\"dweb:/ipfs/QmQMvwEcPhoRXzbXyrdoeRtvLoifUW9Qh7Luho7bmUPRkc\"]},\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xb63221b23818d622bfd83d18e0968307e4fcb7a35536bdceded76e1cf8349acd\",\"urls\":[\"bzz-raw://44e1e8c22362c4708a8c3362735f1465f5b05e2f7315e16c7010d694ce019d73\",\"dweb:/ipfs/QmWj9g8X1hxkXRre2kwkEjLBetjuzmSbWHD81bsSojnBkS\"]}},\"version\":1}",
|
|
452
|
+
"bytecode": "0x608060405260006100176001600160e01b0361007d16565b600e80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600e805460ff60a01b1916600160a01b179055610081565b3390565b6117f2806100906000396000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c80638da5cb5b116100cd578063e8e72f7511610081578063ef6957d011610066578063ef6957d014610297578063f2901ae2146102aa578063f2fde38b146102bd57610151565b8063e8e72f7514610271578063ec6e39871461028457610151565b80638f6bc659116100b25780638f6bc65914610238578063c0bb72b71461024b578063d36cca901461025e57610151565b80638da5cb5b1461020e5780638f32d59b1461022357610151565b80633063bce2116101245780634be87414116101095780634be87414146101e0578063715018a6146101f35780638439dd92146101fb57610151565b80633063bce2146101ba578063387a498a146101cd57610151565b8063042069d614610156578063121fb72f1461016b5780632a5608451461017e5780632e822af3146101a7575b600080fd5b610169610164366004611343565b6102d0565b005b610169610179366004611313565b6103cf565b61019161018c36600461115d565b61047e565b60405161019e91906116e0565b60405180910390f35b6101696101b5366004611299565b61059a565b6101696101c8366004611299565b61068d565b6101696101db366004611299565b61073a565b6101696101ee366004611343565b6107e7565b610169610896565b6101696102093660046111c7565b610929565b610216610a2e565b60405161019e91906114f6565b61022b610a4a565b60405161019e9190611504565b6101916102463660046112d5565b610a8a565b610169610259366004611299565b610b3b565b61016961026c366004611263565b610be8565b61016961027f366004611313565b610c97565b610169610292366004611197565b610d46565b6101696102a53660046112f4565b610df5565b6101696102b8366004611197565b610ea4565b6101696102cb366004611137565b610f53565b6102d8610a4a565b6102fd5760405162461bcd60e51b81526004016102f490611522565b60405180910390fd5b600e54600160a01b900460ff166103265760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8854ab3e00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638854ab3e9061038890600090869086906004016116b8565b60006040518083038186803b1580156103a057600080fd5b505af41580156103b4573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b17905550505050565b6103d7610a4a565b6103f35760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff1661041c5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517faa92e34800000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063aa92e348906103889060009086908690600401611690565b6000610488610a4a565b6104a45760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166104cd5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fdd32998a00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063dd32998a9061052f9060009087908790600401611542565b60206040518083038186803b15801561054757600080fd5b505af415801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061057f91908101906112b7565b9050600e805460ff60a01b1916600160a01b17905592915050565b6105a2610a4a565b6105be5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166105e75760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517ff9cacc4c00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063f9cacc4c90610647906000908590600401611638565b60006040518083038186803b15801561065f57600080fd5b505af4158015610673573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050565b610695610a4a565b6106b15760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166106da5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f0f44e6bc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90630f44e6bc90610647906000908590600401611638565b610742610a4a565b61075e5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166107875760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f311401d000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063311401d090610647906000908590600401611638565b6107ef610a4a565b61080b5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166108345760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f7335079b00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90637335079b9061038890600090869086906004016116b8565b61089e610a4a565b6108ba5760405162461bcd60e51b81526004016102f490611522565b600e5460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610931610a4a565b61094d5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166109765760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f4f32fb2700000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90634f32fb27906109e2906000908b908b908b908b908b908b908b90600401611592565b60006040518083038186803b1580156109fa57600080fd5b505af4158015610a0e573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050505050505050565b600e5473ffffffffffffffffffffffffffffffffffffffff1690565b600e5460009073ffffffffffffffffffffffffffffffffffffffff16610a6e610f83565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b6000610a94610a4a565b610ab05760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ad95760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fb25328e000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063b25328e09061052f906000908790879060040161165a565b610b43610a4a565b610b5f5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610b885760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f54dd351600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906354dd351690610647906000908590600401611638565b610bf0610a4a565b610c0c5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610c355760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fd963729100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063d9637291906103889060009086908690600401611609565b610c9f610a4a565b610cbb5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ce45760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8c5dabd100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638c5dabd1906103889060009086908690600401611690565b610d4e610a4a565b610d6a5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610d935760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f3c0c9ddc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90633c0c9ddc90610388906000908690869060040161156a565b610dfd610a4a565b610e195760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610e425760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f10c87b0600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906310c87b06906103889060009086908690600401611675565b610eac610a4a565b610ec85760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ef15760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fe80f802400000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063e80f802490610388906000908690869060040161156a565b610f5b610a4a565b610f775760405162461bcd60e51b81526004016102f490611522565b610f8081610f87565b50565b3390565b73ffffffffffffffffffffffffffffffffffffffff8116610fba5760405162461bcd60e51b81526004016102f490611512565b600e5460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803561105381611780565b92915050565b600082601f83011261106a57600080fd5b813561107d61107882611715565b6116ee565b915081818352602084019350602081019050838560208402820111156110a257600080fd5b60005b838110156110ce57816110b88882611121565b84525060209283019291909101906001016110a5565b5050505092915050565b803561105381611794565b80356110538161179d565b60006020828403121561110057600080fd5b61110a60206116ee565b905060006111188484611121565b82525092915050565b8035611053816117a6565b8051611053816117a6565b60006020828403121561114957600080fd5b60006111558484611048565b949350505050565b6000806040838503121561117057600080fd5b600061117c8585611048565b925050602061118d85828601611048565b9150509250929050565b600080604083850312156111aa57600080fd5b60006111b68585611048565b925050602061118d858286016110d8565b600080600080600080600060e0888a0312156111e257600080fd5b60006111ee8a8a611048565b97505060206111ff8a828b016110e3565b96505060406112108a828b016110e3565b95505060606112218a828b016110ee565b94505060806112328a828b016110ee565b93505060a06112438a828b016110d8565b92505060c06112548a828b016110d8565b91505092959891949750929550565b6000806040838503121561127657600080fd5b823567ffffffffffffffff81111561128d57600080fd5b61117c85828601611059565b6000602082840312156112ab57600080fd5b600061115584846110ee565b6000602082840312156112c957600080fd5b6000611155848461112c565b600080604083850312156112e857600080fd5b600061117c8585611121565b6000806040838503121561130757600080fd5b60006111b68585611121565b6000806040838503121561132657600080fd5b60006113328585611121565b925050602061118d858286016110e3565b6000806040838503121561135657600080fd5b60006113628585611121565b925050602061118d858286016110ee565b600061137f83836114ed565b505060200190565b61139081611749565b82525050565b60006113a18261173c565b6113ab8185611740565b93506113b683611736565b8060005b838110156113e45781516113ce8882611373565b97506113d983611736565b9250506001016113ba565b509495945050505050565b61139081611754565b61139081611759565b600061140e602683611740565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015260400192915050565b600061146d602083611740565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006114a6601f83611740565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b805160208301906114e384826114ed565b50505050565b9052565b6113908161177d565b602081016110538284611387565b6020810161105382846113ef565b6020808252810161105381611401565b6020808252810161105381611460565b6020808252810161105381611499565b6060810161155082866114e9565b61155d6020830185611387565b6111556040830184611387565b6060810161157882866114e9565b6115856020830185611387565b61115560408301846113ef565b61010081016115a1828b6114e9565b6115ae602083018a611387565b6115bb60408301896113f8565b6115c860608301886113f8565b6115d560808301876114d2565b6115e260a08301866114d2565b6115ef60c08301856113ef565b6115fc60e08301846113ef565b9998505050505050505050565b6060810161161782866114e9565b81810360208301526116298185611396565b90506111556040830184611387565b6040810161164682856114e9565b61165360208301846114d2565b9392505050565b6060810161166882866114e9565b61155d60208301856114ed565b6060810161168382866114e9565b61158560208301856114ed565b6060810161169e82866114e9565b6116ab60208301856114ed565b61115560408301846113f8565b606081016116c682866114e9565b6116d360208301856114ed565b61115560408301846114d2565b6020810161105382846114ed565b60405181810167ffffffffffffffff8111828210171561170d57600080fd5b604052919050565b600067ffffffffffffffff82111561172c57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b600061105382611764565b151590565b600061105382611749565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b61178981611749565b8114610f8057600080fd5b61178981611754565b61178981611759565b6117898161177d56fea365627a7a7231582019340b2fd4f851eb093062c1d76482caa301bc2e355a44106075d3c4bb0c3b476c6578706572696d656e74616cf564736f6c63430005100040",
|
|
453
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101515760003560e01c80638da5cb5b116100cd578063e8e72f7511610081578063ef6957d011610066578063ef6957d014610297578063f2901ae2146102aa578063f2fde38b146102bd57610151565b8063e8e72f7514610271578063ec6e39871461028457610151565b80638f6bc659116100b25780638f6bc65914610238578063c0bb72b71461024b578063d36cca901461025e57610151565b80638da5cb5b1461020e5780638f32d59b1461022357610151565b80633063bce2116101245780634be87414116101095780634be87414146101e0578063715018a6146101f35780638439dd92146101fb57610151565b80633063bce2146101ba578063387a498a146101cd57610151565b8063042069d614610156578063121fb72f1461016b5780632a5608451461017e5780632e822af3146101a7575b600080fd5b610169610164366004611343565b6102d0565b005b610169610179366004611313565b6103cf565b61019161018c36600461115d565b61047e565b60405161019e91906116e0565b60405180910390f35b6101696101b5366004611299565b61059a565b6101696101c8366004611299565b61068d565b6101696101db366004611299565b61073a565b6101696101ee366004611343565b6107e7565b610169610896565b6101696102093660046111c7565b610929565b610216610a2e565b60405161019e91906114f6565b61022b610a4a565b60405161019e9190611504565b6101916102463660046112d5565b610a8a565b610169610259366004611299565b610b3b565b61016961026c366004611263565b610be8565b61016961027f366004611313565b610c97565b610169610292366004611197565b610d46565b6101696102a53660046112f4565b610df5565b6101696102b8366004611197565b610ea4565b6101696102cb366004611137565b610f53565b6102d8610a4a565b6102fd5760405162461bcd60e51b81526004016102f490611522565b60405180910390fd5b600e54600160a01b900460ff166103265760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8854ab3e00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638854ab3e9061038890600090869086906004016116b8565b60006040518083038186803b1580156103a057600080fd5b505af41580156103b4573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b17905550505050565b6103d7610a4a565b6103f35760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff1661041c5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517faa92e34800000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063aa92e348906103889060009086908690600401611690565b6000610488610a4a565b6104a45760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166104cd5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fdd32998a00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063dd32998a9061052f9060009087908790600401611542565b60206040518083038186803b15801561054757600080fd5b505af415801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061057f91908101906112b7565b9050600e805460ff60a01b1916600160a01b17905592915050565b6105a2610a4a565b6105be5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166105e75760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517ff9cacc4c00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063f9cacc4c90610647906000908590600401611638565b60006040518083038186803b15801561065f57600080fd5b505af4158015610673573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050565b610695610a4a565b6106b15760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166106da5760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f0f44e6bc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90630f44e6bc90610647906000908590600401611638565b610742610a4a565b61075e5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166107875760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f311401d000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063311401d090610647906000908590600401611638565b6107ef610a4a565b61080b5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166108345760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f7335079b00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90637335079b9061038890600090869086906004016116b8565b61089e610a4a565b6108ba5760405162461bcd60e51b81526004016102f490611522565b600e5460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610931610a4a565b61094d5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff166109765760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f4f32fb2700000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90634f32fb27906109e2906000908b908b908b908b908b908b908b90600401611592565b60006040518083038186803b1580156109fa57600080fd5b505af4158015610a0e573d6000803e3d6000fd5b5050600e805460ff60a01b1916600160a01b179055505050505050505050565b600e5473ffffffffffffffffffffffffffffffffffffffff1690565b600e5460009073ffffffffffffffffffffffffffffffffffffffff16610a6e610f83565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b6000610a94610a4a565b610ab05760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ad95760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fb25328e000000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063b25328e09061052f906000908790879060040161165a565b610b43610a4a565b610b5f5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610b885760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f54dd351600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906354dd351690610647906000908590600401611638565b610bf0610a4a565b610c0c5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610c355760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fd963729100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063d9637291906103889060009086908690600401611609565b610c9f610a4a565b610cbb5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ce45760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f8c5dabd100000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90638c5dabd1906103889060009086908690600401611690565b610d4e610a4a565b610d6a5760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610d935760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f3c0c9ddc00000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________90633c0c9ddc90610388906000908690869060040161156a565b610dfd610a4a565b610e195760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610e425760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517f10c87b0600000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________906310c87b06906103889060009086908690600401611675565b610eac610a4a565b610ec85760405162461bcd60e51b81526004016102f490611522565b600e54600160a01b900460ff16610ef15760405162461bcd60e51b81526004016102f490611532565b600e805460ff60a01b191690556040517fe80f802400000000000000000000000000000000000000000000000000000000815273__AdminImpl_____________________________9063e80f802490610388906000908690869060040161156a565b610f5b610a4a565b610f775760405162461bcd60e51b81526004016102f490611522565b610f8081610f87565b50565b3390565b73ffffffffffffffffffffffffffffffffffffffff8116610fba5760405162461bcd60e51b81526004016102f490611512565b600e5460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803561105381611780565b92915050565b600082601f83011261106a57600080fd5b813561107d61107882611715565b6116ee565b915081818352602084019350602081019050838560208402820111156110a257600080fd5b60005b838110156110ce57816110b88882611121565b84525060209283019291909101906001016110a5565b5050505092915050565b803561105381611794565b80356110538161179d565b60006020828403121561110057600080fd5b61110a60206116ee565b905060006111188484611121565b82525092915050565b8035611053816117a6565b8051611053816117a6565b60006020828403121561114957600080fd5b60006111558484611048565b949350505050565b6000806040838503121561117057600080fd5b600061117c8585611048565b925050602061118d85828601611048565b9150509250929050565b600080604083850312156111aa57600080fd5b60006111b68585611048565b925050602061118d858286016110d8565b600080600080600080600060e0888a0312156111e257600080fd5b60006111ee8a8a611048565b97505060206111ff8a828b016110e3565b96505060406112108a828b016110e3565b95505060606112218a828b016110ee565b94505060806112328a828b016110ee565b93505060a06112438a828b016110d8565b92505060c06112548a828b016110d8565b91505092959891949750929550565b6000806040838503121561127657600080fd5b823567ffffffffffffffff81111561128d57600080fd5b61117c85828601611059565b6000602082840312156112ab57600080fd5b600061115584846110ee565b6000602082840312156112c957600080fd5b6000611155848461112c565b600080604083850312156112e857600080fd5b600061117c8585611121565b6000806040838503121561130757600080fd5b60006111b68585611121565b6000806040838503121561132657600080fd5b60006113328585611121565b925050602061118d858286016110e3565b6000806040838503121561135657600080fd5b60006113628585611121565b925050602061118d858286016110ee565b600061137f83836114ed565b505060200190565b61139081611749565b82525050565b60006113a18261173c565b6113ab8185611740565b93506113b683611736565b8060005b838110156113e45781516113ce8882611373565b97506113d983611736565b9250506001016113ba565b509495945050505050565b61139081611754565b61139081611759565b600061140e602683611740565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015260400192915050565b600061146d602083611740565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006114a6601f83611740565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b805160208301906114e384826114ed565b50505050565b9052565b6113908161177d565b602081016110538284611387565b6020810161105382846113ef565b6020808252810161105381611401565b6020808252810161105381611460565b6020808252810161105381611499565b6060810161155082866114e9565b61155d6020830185611387565b6111556040830184611387565b6060810161157882866114e9565b6115856020830185611387565b61115560408301846113ef565b61010081016115a1828b6114e9565b6115ae602083018a611387565b6115bb60408301896113f8565b6115c860608301886113f8565b6115d560808301876114d2565b6115e260a08301866114d2565b6115ef60c08301856113ef565b6115fc60e08301846113ef565b9998505050505050505050565b6060810161161782866114e9565b81810360208301526116298185611396565b90506111556040830184611387565b6040810161164682856114e9565b61165360208301846114d2565b9392505050565b6060810161166882866114e9565b61155d60208301856114ed565b6060810161168382866114e9565b61158560208301856114ed565b6060810161169e82866114e9565b6116ab60208301856114ed565b61115560408301846113f8565b606081016116c682866114e9565b6116d360208301856114ed565b61115560408301846114d2565b6020810161105382846114ed565b60405181810167ffffffffffffffff8111828210171561170d57600080fd5b604052919050565b600067ffffffffffffffff82111561172c57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b600061105382611764565b151590565b600061105382611749565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b61178981611749565b8114610f8057600080fd5b61178981611754565b61178981611759565b6117898161177d56fea365627a7a7231582019340b2fd4f851eb093062c1d76482caa301bc2e355a44106075d3c4bb0c3b476c6578706572696d656e74616cf564736f6c63430005100040",
|
|
454
454
|
"sourceMap": "1347:7062:47:-;;;698:17:125;718:12;-1:-1:-1;;;;;718:10:125;:12;:::i;:::-;740:6;:18;;-1:-1:-1;;;;;;740:18:125;-1:-1:-1;;;;;740:18:125;;;;;;;;773:43;;740:18;;-1:-1:-1;740:18:125;-1:-1:-1;;773:43:125;;-1:-1:-1;;773:43:125;-1:-1:-1;1421:11:129;:18;;-1:-1:-1;;;;1421:18:129;-1:-1:-1;;;1421:18:129;;;1347:7062:47;;788:96:122;867:10;788:96;:::o;1347:7062:47:-;;;;;;;",
|
|
455
455
|
"deployedSourceMap": "1347:7062:47:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1347:7062:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5587:292;;;;;;;;;:::i;:::-;;4588;;;;;;;;;:::i;2262:317::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;7222:258;;;;;;;;;:::i;6446:238::-;;;;;;;;;:::i;6853:240::-;;;;;;;;;:::i;5095:292::-;;;;;;;;;:::i;1684:137:125:-;;;:::i;2745:569:47:-;;;;;;;;;:::i;899:77:125:-;;;:::i;:::-;;;;;;;;1250:92;;;:::i;:::-;;;;;;;;1855:313:47;;;;;;;;;:::i;6056:224::-;;;;;;;;;:::i;3482:272::-;;;;;;;;;:::i;4244:277::-;;;;;;;;;:::i;8130:::-;;;;;;;;;:::i;3919:261::-;;;;;;;;;:::i;7728:269::-;;;;;;;;;:::i;1970:107:125:-;;;;;;;;;:::i;5587:292:47:-;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;5761:111:47;;;;;:9;;:31;;:111;;2070:5:129;;5827:8:47;;5849:13;;5761:111;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5761:111:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;2230:11:129;:18;;-1:-1:-1;;;;2230:18:129;-1:-1:-1;;;2230:18:129;;;-1:-1:-1;;;;5587:292:47:o;4588:::-;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;4760:113:47;;;;;:9;;:32;;:113;;2070:5:129;;4827:8:47;;4849:14;;4760:113;;;;2262:317;2429:7;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;2459:113:47;;;;;:9;;:40;;:113;;2070:5:129;;2534::47;;2553:9;;2459:113;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2459:113:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2459:113:47;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;2459:113:47;;;;;;;;;2452:120;;2230:11:129;:18;;-1:-1:-1;;;;2230:18:129;-1:-1:-1;;;2230:18:129;;;2262:317:47;;-1:-1:-1;;2262:317:47:o;7222:258::-;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;7378:95:47;;;;;:9;;:34;;:95;;2070:5:129;;7447:16:47;;7378:95;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7378:95:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;2230:11:129;:18;;-1:-1:-1;;;;2230:18:129;-1:-1:-1;;;2230:18:129;;;-1:-1:-1;;;7222:258:47:o;6446:238::-;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;6591:86:47;;;;;:9;;:35;;:86;;2070:5:129;;6661:6:47;;6591:86;;;;6853:240;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;6999:87:47;;;;;:9;;:30;;:87;;2070:5:129;;7064:12:47;;6999:87;;;;5095:292;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;5269:111:47;;;;;:9;;:31;;:111;;2070:5:129;;5335:8:47;;5357:13;;5269:111;;;;1684:137:125;1103:9;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1766:6;;1745:40;;1782:1;;1745:40;1766:6;;1745:40;;1782:1;;1745:40;1795:6;:19;;;;;;1684:137::o;2745:569:47:-;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;3077:230:47;;;;;:9;;:24;;:230;;2070:5:129;;3136::47;;3155:11;;3180:14;;3208:13;;3235;;3262:9;;3285:12;;3077:230;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3077:230:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;2230:11:129;:18;;-1:-1:-1;;;;2230:18:129;-1:-1:-1;;;2230:18:129;;;-1:-1:-1;;;;;;;;;2745:569:47:o;899:77:125:-;963:6;;;;899:77;:::o;1250:92::-;1329:6;;1290:4;;1329:6;;1313:12;:10;:12::i;:::-;:22;;;1306:29;;1250:92;:::o;1855:313:47:-;2020:7;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;2050:111:47;;;;;:9;;:35;;:111;;2070:5:129;;2120:8:47;;2142:9;;2050:111;;;;6056:224;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;6194:79:47;;;;;:9;;:29;;:79;;2070:5:129;;6258::47;;6194:79;;;;3482:272;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;3643:104:47;;;;;:9;;:28;;:104;;2070:5:129;;3706:9:47;;3729:8;;3643:104;;;;4244:277;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;4407:107:47;;;;;:9;;:29;;:107;;2070:5:129;;4471:8:47;;4493:11;;4407:107;;;;8130:277;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;8289:111:47;;;;;:9;;:35;;:111;;2070:5:129;;8359:10:47;;8383:7;;8289:111;;;;3919:261;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;4070:103:47;;;;;:9;;:27;;:103;;2070:5:129;;4132:8:47;;4154:9;;4070:103;;;;7728:269;1103:9:125;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;1934:11:129;;-1:-1:-1;;;1934:11:129;;;;1926:55;;;;-1:-1:-1;;;1926:55:129;;;;;;;;;2056:11;:19;;-1:-1:-1;;;;2056:19:129;;;7883:107:47;;;;;:9;;:32;;:107;;2070:5:129;;7950:8:47;;7972;;7883:107;;;;1970::125;1103:9;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:125;;;;;;;;;2042:28;2061:8;2042:18;:28::i;:::-;1970:107;:::o;788:96:122:-;867:10;788:96;:::o;2178:225:125:-;2251:22;;;2243:73;;;;-1:-1:-1;;;2243:73:125;;;;;;;;;2352:6;;2331:38;;;;;;;2352:6;;2331:38;;2352:6;;2331:38;2379:6;:17;;;;;;;;;;;;;;;2178:225::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;;57:78;;;;;160:707;;277:3;270:4;262:6;258:17;254:27;244:2;;295:1;292;285:12;244:2;332:6;319:20;354:80;369:64;426:6;369:64;;;354:80;;;345:89;;451:5;476:6;469:5;462:21;506:4;498:6;494:17;484:27;;528:4;523:3;519:14;512:21;;581:6;628:3;620:4;612:6;608:17;603:3;599:27;596:36;593:2;;;645:1;642;635:12;593:2;670:1;655:206;680:6;677:1;674:13;655:206;;;738:3;760:37;793:3;781:10;760:37;;;748:50;;-1:-1;821:4;812:14;;;;840;;;;;702:1;695:9;655:206;;;659:14;237:630;;;;;;;;875:124;939:20;;964:30;939:20;964:30;;1006:180;1098:20;;1123:58;1098:20;1123:58;;1400:322;;1512:4;1500:9;1495:3;1491:19;1487:30;1484:2;;;1530:1;1527;1520:12;1484:2;1548:20;1563:4;1548:20;;;1539:29;-1:-1;1619:1;1651:49;1696:3;1676:9;1651:49;;;1626:75;;-1:-1;1637:5;1478:244;-1:-1;;1478:244;2087:130;2154:20;;2179:33;2154:20;2179:33;;2224:134;2302:13;;2320:33;2302:13;2320:33;;2365:241;;2469:2;2457:9;2448:7;2444:23;2440:32;2437:2;;;2485:1;2482;2475:12;2437:2;2520:1;2537:53;2582:7;2562:9;2537:53;;;2527:63;2431:175;-1:-1;;;;2431:175;2613:366;;;2734:2;2722:9;2713:7;2709:23;2705:32;2702:2;;;2750:1;2747;2740:12;2702:2;2785:1;2802:53;2847:7;2827:9;2802:53;;;2792:63;;2764:97;2892:2;2910:53;2955:7;2946:6;2935:9;2931:22;2910:53;;;2900:63;;2871:98;2696:283;;;;;;2986:360;;;3104:2;3092:9;3083:7;3079:23;3075:32;3072:2;;;3120:1;3117;3110:12;3072:2;3155:1;3172:53;3217:7;3197:9;3172:53;;;3162:63;;3134:97;3262:2;3280:50;3322:7;3313:6;3302:9;3298:22;3280:50;;3353:1169;;;;;;;;3646:3;3634:9;3625:7;3621:23;3617:33;3614:2;;;3663:1;3660;3653:12;3614:2;3698:1;3715:53;3760:7;3740:9;3715:53;;;3705:63;;3677:97;3805:2;3823:75;3890:7;3881:6;3870:9;3866:22;3823:75;;;3813:85;;3784:120;3935:2;3953:78;4023:7;4014:6;4003:9;3999:22;3953:78;;;3943:88;;3914:123;4068:2;4086:76;4154:7;4145:6;4134:9;4130:22;4086:76;;;4076:86;;4047:121;4199:3;4218:76;4286:7;4277:6;4266:9;4262:22;4218:76;;;4208:86;;4178:122;4331:3;4350:50;4392:7;4383:6;4372:9;4368:22;4350:50;;;4340:60;;4310:96;4437:3;4456:50;4498:7;4489:6;4478:9;4474:22;4456:50;;;4446:60;;4416:96;3608:914;;;;;;;;;;;4529:502;;;4675:2;4663:9;4654:7;4650:23;4646:32;4643:2;;;4691:1;4688;4681:12;4643:2;4726:31;;4777:18;4766:30;;4763:2;;;4809:1;4806;4799:12;4763:2;4829:78;4899:7;4890:6;4879:9;4875:22;4829:78;;5038:287;;5165:2;5153:9;5144:7;5140:23;5136:32;5133:2;;;5181:1;5178;5171:12;5133:2;5216:1;5233:76;5301:7;5281:9;5233:76;;5628:263;;5743:2;5731:9;5722:7;5718:23;5714:32;5711:2;;;5759:1;5756;5749:12;5711:2;5794:1;5811:64;5867:7;5847:9;5811:64;;5898:366;;;6019:2;6007:9;5998:7;5994:23;5990:32;5987:2;;;6035:1;6032;6025:12;5987:2;6070:1;6087:53;6132:7;6112:9;6087:53;;6271:360;;;6389:2;6377:9;6368:7;6364:23;6360:32;6357:2;;;6405:1;6402;6395:12;6357:2;6440:1;6457:53;6502:7;6482:9;6457:53;;6638:416;;;6784:2;6772:9;6763:7;6759:23;6755:32;6752:2;;;6800:1;6797;6790:12;6752:2;6835:1;6852:53;6897:7;6877:9;6852:53;;;6842:63;;6814:97;6942:2;6960:78;7030:7;7021:6;7010:9;7006:22;6960:78;;7478:412;;;7622:2;7610:9;7601:7;7597:23;7593:32;7590:2;;;7638:1;7635;7628:12;7590:2;7673:1;7690:53;7735:7;7715:9;7690:53;;;7680:63;;7652:97;7780:2;7798:76;7866:7;7857:6;7846:9;7842:22;7798:76;;7898:189;;7993:54;8043:3;8035:6;7993:54;;;-1:-1;;8076:4;8067:14;;7986:101;8095:113;8178:24;8196:5;8178:24;;;8173:3;8166:37;8160:48;;;8374:714;;8527:54;8575:5;8527:54;;;8594:94;8681:6;8676:3;8594:94;;;8587:101;;8709:56;8759:5;8709:56;;;8785:7;8813:1;8798:268;8823:6;8820:1;8817:13;8798:268;;;8890:6;8884:13;8911:71;8978:3;8963:13;8911:71;;;8904:78;;8999:60;9052:6;8999:60;;;8989:70;-1:-1;;8845:1;8838:9;8798:268;;;-1:-1;9079:3;;8506:582;-1:-1;;;;;8506:582;9096:104;9173:21;9188:5;9173:21;;9326:184;9442:62;9498:5;9442:62;;9703:375;;9863:67;9927:2;9922:3;9863:67;;;9963:34;9943:55;;10032:8;10027:2;10018:12;;10011:30;10069:2;10060:12;;9849:229;-1:-1;;9849:229;10087:332;;10247:67;10311:2;10306:3;10247:67;;;10347:34;10327:55;;10410:2;10401:12;;10233:186;-1:-1;;10233:186;10428:331;;10588:67;10652:2;10647:3;10588:67;;;10688:33;10668:54;;10750:2;10741:12;;10574:185;-1:-1;;10574:185;10816:335;11030:23;;10963:4;10954:14;;;11059:71;10958:3;11030:23;11059:71;;;10983:153;10936:215;;;;11158:123;11258:18;;11252:29;11685:113;11768:24;11786:5;11768:24;;12051:213;12169:2;12154:18;;12183:71;12158:9;12227:6;12183:71;;12271:201;12383:2;12368:18;;12397:65;12372:9;12435:6;12397:65;;12479:407;12670:2;12684:47;;;12655:18;;12745:131;12655:18;12745:131;;12893:407;13084:2;13098:47;;;13069:18;;13159:131;13069:18;13159:131;;13307:407;13498:2;13512:47;;;13483:18;;13573:131;13483:18;13573:131;;13721:509;13924:2;13909:18;;13938:100;13913:9;14011:6;13938:100;;;14049:80;14125:2;14114:9;14110:18;14101:6;14049:80;;;14140;14216:2;14205:9;14201:18;14192:6;14140:80;;14237:497;14434:2;14419:18;;14448:100;14423:9;14521:6;14448:100;;;14559:80;14635:2;14624:9;14620:18;14611:6;14559:80;;;14650:74;14720:2;14709:9;14705:18;14696:6;14650:74;;14741:1363;15211:3;15196:19;;15226:100;15200:9;15299:6;15226:100;;;15337:80;15413:2;15402:9;15398:18;15389:6;15337:80;;;15428:102;15526:2;15515:9;15511:18;15502:6;15428:102;;;15541:105;15642:2;15631:9;15627:18;15618:6;15541:105;;;15657:127;15779:3;15768:9;15764:19;15755:6;15657:127;;;15795;15917:3;15906:9;15902:19;15893:6;15795:127;;;15933:75;16003:3;15992:9;15988:19;15979:6;15933:75;;;16019;16089:3;16078:9;16074:19;16065:6;16019:75;;;15182:922;;;;;;;;;;;;16111:657;16364:2;16349:18;;16378:100;16353:9;16451:6;16378:100;;;16526:9;16520:4;16516:20;16511:2;16500:9;16496:18;16489:48;16551:116;16662:4;16653:6;16551:116;;;16543:124;;16678:80;16754:2;16743:9;16739:18;16730:6;16678:80;;16775:482;16996:2;16981:18;;17010:100;16985:9;17083:6;17010:100;;;17121:126;17243:2;17232:9;17228:18;17219:6;17121:126;;;16967:290;;;;;;17757:509;17960:2;17945:18;;17974:100;17949:9;18047:6;17974:100;;;18085:80;18161:2;18150:9;18146:18;18137:6;18085:80;;18273:497;18470:2;18455:18;;18484:100;18459:9;18557:6;18484:100;;;18595:80;18671:2;18660:9;18656:18;18647:6;18595:80;;18777:559;19005:2;18990:18;;19019:100;18994:9;19092:6;19019:100;;;19130:80;19206:2;19195:9;19191:18;19182:6;19130:80;;;19221:105;19322:2;19311:9;19307:18;19298:6;19221:105;;19903:601;20152:2;20137:18;;20166:100;20141:9;20239:6;20166:100;;;20277:80;20353:2;20342:9;20338:18;20329:6;20277:80;;;20368:126;20490:2;20479:9;20475:18;20466:6;20368:126;;20511:213;20629:2;20614:18;;20643:71;20618:9;20687:6;20643:71;;20731:256;20793:2;20787:9;20819:17;;;20894:18;20879:34;;20915:22;;;20876:62;20873:2;;;20951:1;20948;20941:12;20873:2;20967;20960:22;20771:216;;-1:-1;20771:216;20994:304;;21153:18;21145:6;21142:30;21139:2;;;21185:1;21182;21175:12;21139:2;-1:-1;21220:4;21208:17;;;21273:15;;21076:222;21305:151;21429:4;21420:14;;21377:79;21463:137;21566:12;;21537:63;21723:186;21849:19;;;21898:4;21889:14;;21842:67;22089:91;;22151:24;22169:5;22151:24;;22187:85;22253:13;22246:21;;22229:43;22279:116;;22366:24;22384:5;22366:24;;22522:121;22595:42;22584:54;;22567:76;22650:72;22712:5;22695:27;23356:117;23425:24;23443:5;23425:24;;;23418:5;23415:35;23405:2;;23464:1;23461;23454:12;23480:111;23546:21;23561:5;23546:21;;23598:167;23692:49;23735:5;23692:49;;23940:117;24009:24;24027:5;24009:24;",
|
|
456
456
|
"source": "/*\n\n Copyright 2019 dYdX Trading Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\npragma experimental ABIEncoderV2;\n\nimport { Ownable } from \"@openzeppelin/contracts/ownership/Ownable.sol\";\nimport { ReentrancyGuard } from \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\";\nimport { State } from \"./State.sol\";\nimport { AdminImpl } from \"./impl/AdminImpl.sol\";\nimport { IInterestSetter } from \"./interfaces/IInterestSetter.sol\";\nimport { IPriceOracle } from \"./interfaces/IPriceOracle.sol\";\nimport { Decimal } from \"./lib/Decimal.sol\";\nimport { Interest } from \"./lib/Interest.sol\";\nimport { Monetary } from \"./lib/Monetary.sol\";\nimport { Token } from \"./lib/Token.sol\";\n\n\n/**\n * @title Admin\n * @author dYdX\n *\n * Public functions that allow the privileged owner address to manage DolomiteMargin\n */\ncontract Admin is\n State,\n Ownable,\n ReentrancyGuard\n{\n // ============ Token Functions ============\n\n /**\n * Withdraw an ERC20 token for which there is an associated market. Only excess tokens can be withdrawn. The number\n * of excess tokens is calculated by taking the current number of tokens held in DolomiteMargin, adding the number\n * of tokens owed to DolomiteMargin by borrowers, and subtracting the number of tokens owed to suppliers by\n * DolomiteMargin.\n */\n function ownerWithdrawExcessTokens(\n uint256 marketId,\n address recipient\n )\n public\n onlyOwner\n nonReentrant\n returns (uint256)\n {\n return AdminImpl.ownerWithdrawExcessTokens(\n g_state,\n marketId,\n recipient\n );\n }\n\n /**\n * Withdraw an ERC20 token for which there is no associated market.\n */\n function ownerWithdrawUnsupportedTokens(\n address token,\n address recipient\n )\n public\n onlyOwner\n nonReentrant\n returns (uint256)\n {\n return AdminImpl.ownerWithdrawUnsupportedTokens(\n g_state,\n token,\n recipient\n );\n }\n\n // ============ Market Functions ============\n\n /**\n * Add a new market to DolomiteMargin. Must be for a previously-unsupported ERC20 token.\n */\n function ownerAddMarket(\n address token,\n IPriceOracle priceOracle,\n IInterestSetter interestSetter,\n Decimal.D256 memory marginPremium,\n Decimal.D256 memory spreadPremium,\n bool isClosing,\n bool isRecyclable\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerAddMarket(\n g_state,\n token,\n priceOracle,\n interestSetter,\n marginPremium,\n spreadPremium,\n isClosing,\n isRecyclable\n );\n }\n\n /**\n * Removes a market from DolomiteMargin, sends any remaining tokens in this contract to `salvager` and invokes the\n * recyclable callback\n */\n function ownerRemoveMarkets(\n uint[] memory marketIds,\n address salvager\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerRemoveMarkets(\n g_state,\n marketIds,\n salvager\n );\n }\n\n /**\n * Set (or unset) the status of a market to \"closing\". The borrowedValue of a market cannot increase while its\n * status is \"closing\".\n */\n function ownerSetIsClosing(\n uint256 marketId,\n bool isClosing\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetIsClosing(\n g_state,\n marketId,\n isClosing\n );\n }\n\n /**\n * Set the price oracle for a market.\n */\n function ownerSetPriceOracle(\n uint256 marketId,\n IPriceOracle priceOracle\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetPriceOracle(\n g_state,\n marketId,\n priceOracle\n );\n }\n\n /**\n * Set the interest-setter for a market.\n */\n function ownerSetInterestSetter(\n uint256 marketId,\n IInterestSetter interestSetter\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetInterestSetter(\n g_state,\n marketId,\n interestSetter\n );\n }\n\n /**\n * Set a premium on the minimum margin-ratio for a market. This makes it so that any positions that include this\n * market require a higher collateralization to avoid being liquidated.\n */\n function ownerSetMarginPremium(\n uint256 marketId,\n Decimal.D256 memory marginPremium\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetMarginPremium(\n g_state,\n marketId,\n marginPremium\n );\n }\n\n /**\n * Set a premium on the liquidation spread for a market. This makes it so that any liquidations that include this\n * market have a higher spread than the global default.\n */\n function ownerSetSpreadPremium(\n uint256 marketId,\n Decimal.D256 memory spreadPremium\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetSpreadPremium(\n g_state,\n marketId,\n spreadPremium\n );\n }\n\n // ============ Risk Functions ============\n\n /**\n * Set the global minimum margin-ratio that every position must maintain to prevent being liquidated.\n */\n function ownerSetMarginRatio(\n Decimal.D256 memory ratio\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetMarginRatio(\n g_state,\n ratio\n );\n }\n\n /**\n * Set the global liquidation spread. This is the spread between oracle prices that incentivizes the liquidation of\n * risky positions.\n */\n function ownerSetLiquidationSpread(\n Decimal.D256 memory spread\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetLiquidationSpread(\n g_state,\n spread\n );\n }\n\n /**\n * Set the global earnings-rate variable that determines what percentage of the interest paid by borrowers gets\n * passed-on to suppliers.\n */\n function ownerSetEarningsRate(\n Decimal.D256 memory earningsRate\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetEarningsRate(\n g_state,\n earningsRate\n );\n }\n\n /**\n * Set the global minimum-borrow value which is the minimum value of any new borrow on DolomiteMargin.\n */\n function ownerSetMinBorrowedValue(\n Monetary.Value memory minBorrowedValue\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetMinBorrowedValue(\n g_state,\n minBorrowedValue\n );\n }\n\n // ============ Global Operator Functions ============\n\n /**\n * Approve (or disapprove) an address that is permissioned to be an operator for all accounts in DolomiteMargin.\n * Intended only to approve smart-contracts.\n */\n function ownerSetGlobalOperator(\n address operator,\n bool approved\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetGlobalOperator(\n g_state,\n operator,\n approved\n );\n }\n\n /**\n * Approve (or disapprove) an auto trader that can only be called by a global operator. IE for expirations\n */\n function ownerSetAutoTraderSpecial(\n address autoTrader,\n bool special\n )\n public\n onlyOwner\n nonReentrant\n {\n AdminImpl.ownerSetAutoTraderSpecial(\n g_state,\n autoTrader,\n special\n );\n }\n}\n",
|
|
457
|
-
"sourcePath": "/
|
|
457
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/Admin.sol",
|
|
458
458
|
"ast": {
|
|
459
|
-
"absolutePath": "/
|
|
459
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/Admin.sol",
|
|
460
460
|
"exportedSymbols": {
|
|
461
461
|
"Admin": [
|
|
462
462
|
22818
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
"unitAlias": ""
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
|
-
"absolutePath": "/
|
|
521
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/State.sol",
|
|
522
522
|
"file": "./State.sol",
|
|
523
523
|
"id": 22491,
|
|
524
524
|
"nodeType": "ImportDirective",
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
"unitAlias": ""
|
|
535
535
|
},
|
|
536
536
|
{
|
|
537
|
-
"absolutePath": "/
|
|
537
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/impl/AdminImpl.sol",
|
|
538
538
|
"file": "./impl/AdminImpl.sol",
|
|
539
539
|
"id": 22493,
|
|
540
540
|
"nodeType": "ImportDirective",
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
"unitAlias": ""
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
|
-
"absolutePath": "/
|
|
553
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol",
|
|
554
554
|
"file": "./interfaces/IInterestSetter.sol",
|
|
555
555
|
"id": 22495,
|
|
556
556
|
"nodeType": "ImportDirective",
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"unitAlias": ""
|
|
567
567
|
},
|
|
568
568
|
{
|
|
569
|
-
"absolutePath": "/
|
|
569
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IPriceOracle.sol",
|
|
570
570
|
"file": "./interfaces/IPriceOracle.sol",
|
|
571
571
|
"id": 22497,
|
|
572
572
|
"nodeType": "ImportDirective",
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
"unitAlias": ""
|
|
583
583
|
},
|
|
584
584
|
{
|
|
585
|
-
"absolutePath": "/
|
|
585
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Decimal.sol",
|
|
586
586
|
"file": "./lib/Decimal.sol",
|
|
587
587
|
"id": 22499,
|
|
588
588
|
"nodeType": "ImportDirective",
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
"unitAlias": ""
|
|
599
599
|
},
|
|
600
600
|
{
|
|
601
|
-
"absolutePath": "/
|
|
601
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol",
|
|
602
602
|
"file": "./lib/Interest.sol",
|
|
603
603
|
"id": 22501,
|
|
604
604
|
"nodeType": "ImportDirective",
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
"unitAlias": ""
|
|
615
615
|
},
|
|
616
616
|
{
|
|
617
|
-
"absolutePath": "/
|
|
617
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol",
|
|
618
618
|
"file": "./lib/Monetary.sol",
|
|
619
619
|
"id": 22503,
|
|
620
620
|
"nodeType": "ImportDirective",
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
"unitAlias": ""
|
|
631
631
|
},
|
|
632
632
|
{
|
|
633
|
-
"absolutePath": "/
|
|
633
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Token.sol",
|
|
634
634
|
"file": "./lib/Token.sol",
|
|
635
635
|
"id": 22505,
|
|
636
636
|
"nodeType": "ImportDirective",
|
|
@@ -4305,7 +4305,7 @@
|
|
|
4305
4305
|
"src": "603:7807:47"
|
|
4306
4306
|
},
|
|
4307
4307
|
"legacyAST": {
|
|
4308
|
-
"absolutePath": "/
|
|
4308
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/Admin.sol",
|
|
4309
4309
|
"exportedSymbols": {
|
|
4310
4310
|
"Admin": [
|
|
4311
4311
|
22818
|
|
@@ -4367,7 +4367,7 @@
|
|
|
4367
4367
|
"unitAlias": ""
|
|
4368
4368
|
},
|
|
4369
4369
|
{
|
|
4370
|
-
"absolutePath": "/
|
|
4370
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/State.sol",
|
|
4371
4371
|
"file": "./State.sol",
|
|
4372
4372
|
"id": 22491,
|
|
4373
4373
|
"nodeType": "ImportDirective",
|
|
@@ -4383,7 +4383,7 @@
|
|
|
4383
4383
|
"unitAlias": ""
|
|
4384
4384
|
},
|
|
4385
4385
|
{
|
|
4386
|
-
"absolutePath": "/
|
|
4386
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/impl/AdminImpl.sol",
|
|
4387
4387
|
"file": "./impl/AdminImpl.sol",
|
|
4388
4388
|
"id": 22493,
|
|
4389
4389
|
"nodeType": "ImportDirective",
|
|
@@ -4399,7 +4399,7 @@
|
|
|
4399
4399
|
"unitAlias": ""
|
|
4400
4400
|
},
|
|
4401
4401
|
{
|
|
4402
|
-
"absolutePath": "/
|
|
4402
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol",
|
|
4403
4403
|
"file": "./interfaces/IInterestSetter.sol",
|
|
4404
4404
|
"id": 22495,
|
|
4405
4405
|
"nodeType": "ImportDirective",
|
|
@@ -4415,7 +4415,7 @@
|
|
|
4415
4415
|
"unitAlias": ""
|
|
4416
4416
|
},
|
|
4417
4417
|
{
|
|
4418
|
-
"absolutePath": "/
|
|
4418
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IPriceOracle.sol",
|
|
4419
4419
|
"file": "./interfaces/IPriceOracle.sol",
|
|
4420
4420
|
"id": 22497,
|
|
4421
4421
|
"nodeType": "ImportDirective",
|
|
@@ -4431,7 +4431,7 @@
|
|
|
4431
4431
|
"unitAlias": ""
|
|
4432
4432
|
},
|
|
4433
4433
|
{
|
|
4434
|
-
"absolutePath": "/
|
|
4434
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Decimal.sol",
|
|
4435
4435
|
"file": "./lib/Decimal.sol",
|
|
4436
4436
|
"id": 22499,
|
|
4437
4437
|
"nodeType": "ImportDirective",
|
|
@@ -4447,7 +4447,7 @@
|
|
|
4447
4447
|
"unitAlias": ""
|
|
4448
4448
|
},
|
|
4449
4449
|
{
|
|
4450
|
-
"absolutePath": "/
|
|
4450
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol",
|
|
4451
4451
|
"file": "./lib/Interest.sol",
|
|
4452
4452
|
"id": 22501,
|
|
4453
4453
|
"nodeType": "ImportDirective",
|
|
@@ -4463,7 +4463,7 @@
|
|
|
4463
4463
|
"unitAlias": ""
|
|
4464
4464
|
},
|
|
4465
4465
|
{
|
|
4466
|
-
"absolutePath": "/
|
|
4466
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Monetary.sol",
|
|
4467
4467
|
"file": "./lib/Monetary.sol",
|
|
4468
4468
|
"id": 22503,
|
|
4469
4469
|
"nodeType": "ImportDirective",
|
|
@@ -4479,7 +4479,7 @@
|
|
|
4479
4479
|
"unitAlias": ""
|
|
4480
4480
|
},
|
|
4481
4481
|
{
|
|
4482
|
-
"absolutePath": "/
|
|
4482
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Token.sol",
|
|
4483
4483
|
"file": "./lib/Token.sol",
|
|
4484
4484
|
"id": 22505,
|
|
4485
4485
|
"nodeType": "ImportDirective",
|
|
@@ -8159,7 +8159,7 @@
|
|
|
8159
8159
|
},
|
|
8160
8160
|
"networks": {},
|
|
8161
8161
|
"schemaVersion": "3.0.23",
|
|
8162
|
-
"updatedAt": "2022-02-
|
|
8162
|
+
"updatedAt": "2022-02-07T07:18:45.165Z",
|
|
8163
8163
|
"devdoc": {
|
|
8164
8164
|
"author": "dYdX * Public functions that allow the privileged owner address to manage DolomiteMargin",
|
|
8165
8165
|
"methods": {
|