@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
|
@@ -88,15 +88,15 @@
|
|
|
88
88
|
"type": "function"
|
|
89
89
|
}
|
|
90
90
|
],
|
|
91
|
-
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"g_interestRates\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getInterestRate\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Interest.Rate\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Interest.Rate\",\"name\":\"rate\",\"type\":\"tuple\"}],\"name\":\"setInterestRate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interest setter used for testing that always returns a constant interest rate\",\"methods\":{},\"title\":\"TestInterestSetter\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/
|
|
92
|
-
"bytecode": "
|
|
93
|
-
"deployedBytecode": "
|
|
91
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"g_interestRates\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getInterestRate\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Interest.Rate\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Interest.Rate\",\"name\":\"rate\",\"type\":\"tuple\"}],\"name\":\"setInterestRate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"dYdX * Interest setter used for testing that always returns a constant interest rate\",\"methods\":{},\"title\":\"TestInterestSetter\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestInterestSetter.sol\":\"TestInterestSetter\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/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/lib/Decimal.sol\":{\"keccak256\":\"0x66990bbe3c58d0edf57d3f67ab5280e2a53958ce44f75c335c4c50542321bccb\",\"urls\":[\"bzz-raw://724cfdb5c99121aab5262679e46766a2883e344749870d7dbfa92d1617f68bf2\",\"dweb:/ipfs/QmYjAsS45f6UG2u3zuTks2HVfMYtyFCVMgUvD7Gt7XtU3R\"]},\"/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/Require.sol\":{\"keccak256\":\"0xe641662503ea29ca959e84674188c3e9deaaf64c5623fb9560a4301c521ca1d3\",\"urls\":[\"bzz-raw://b10a04c7d014b99eb792c8c774e203c846d070b30cf0b715325fc07838ed6a6d\",\"dweb:/ipfs/QmUqZWnbchfEY9jM647yQamHe4GzspfUeRQF9k2nn1Hixd\"]},\"/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/Types.sol\":{\"keccak256\":\"0xab134538648a2e223a7fe61db03c14f687657a5d37147f93c9088f11735aa311\",\"urls\":[\"bzz-raw://79dc7d2b30576d2349b99267642ac8d5fb7939c920b8d8045379d3614238bdc3\",\"dweb:/ipfs/QmaQJYg1nirHoWSC6G38Cjsk9pZBzEaNrGXKqTsvAzbyES\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestInterestSetter.sol\":{\"keccak256\":\"0xca9371b80baa5d98d584c8a4238fc3dd3dca410dfe385633467f1288bd99bcf6\",\"urls\":[\"bzz-raw://dde12dbe9846a897f0dfeb7f549ded0e3807615e703a0a9c9da195dafec81c64\",\"dweb:/ipfs/QmYijwLFkKbH8M9A6vkeH4gxxR38Sp5fwxaxESiJHdYREF\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]}},\"version\":1}",
|
|
92
|
+
"bytecode": "0x608060405234801561001057600080fd5b5061031e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301fb557c146100465780638f8da8891461006f578063e8177dcf14610084575b600080fd5b610059610054366004610184565b6100a4565b6040516100669190610265565b60405180910390f35b61008261007d3660046101aa565b6100b6565b005b6100976100923660046101e4565b6100e2565b6040516100669190610257565b60006020819052908152604090205481565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260208190526040902090519055565b6100ea610122565b50505073ffffffffffffffffffffffffffffffffffffffff166000908152602081815260409182902082519182019092529054815290565b6040518060200160405280600081525090565b8035610140816102bb565b92915050565b60006020828403121561015857600080fd5b6101626020610273565b905060006101708484610179565b82525092915050565b8035610140816102d2565b60006020828403121561019657600080fd5b60006101a28484610135565b949350505050565b600080604083850312156101bd57600080fd5b60006101c98585610135565b92505060206101da85828601610146565b9150509250929050565b6000806000606084860312156101f957600080fd5b60006102058686610135565b935050602061021686828701610179565b925050604061022786828701610179565b9150509250925092565b805160208301906102428482610248565b50505050565b610251816102b8565b82525050565b602081016101408284610231565b602081016101408284610248565b60405181810167ffffffffffffffff8111828210171561029257600080fd5b604052919050565b600073ffffffffffffffffffffffffffffffffffffffff8216610140565b90565b6102c48161029a565b81146102cf57600080fd5b50565b6102c4816102b856fea365627a7a72315820c2d9c81a503f672dc22633bcf12ced08d4f6446766cf1a6133433bedcbe2d8b46c6578706572696d656e74616cf564736f6c63430005100040",
|
|
93
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301fb557c146100465780638f8da8891461006f578063e8177dcf14610084575b600080fd5b610059610054366004610184565b6100a4565b6040516100669190610265565b60405180910390f35b61008261007d3660046101aa565b6100b6565b005b6100976100923660046101e4565b6100e2565b6040516100669190610257565b60006020819052908152604090205481565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260208190526040902090519055565b6100ea610122565b50505073ffffffffffffffffffffffffffffffffffffffff166000908152602081815260409182902082519182019092529054815290565b6040518060200160405280600081525090565b8035610140816102bb565b92915050565b60006020828403121561015857600080fd5b6101626020610273565b905060006101708484610179565b82525092915050565b8035610140816102d2565b60006020828403121561019657600080fd5b60006101a28484610135565b949350505050565b600080604083850312156101bd57600080fd5b60006101c98585610135565b92505060206101da85828601610146565b9150509250929050565b6000806000606084860312156101f957600080fd5b60006102058686610135565b935050602061021686828701610179565b925050604061022786828701610179565b9150509250925092565b805160208301906102428482610248565b50505050565b610251816102b8565b82525050565b602081016101408284610231565b602081016101408284610248565b60405181810167ffffffffffffffff8111828210171561029257600080fd5b604052919050565b600073ffffffffffffffffffffffffffffffffffffffff8216610140565b90565b6102c48161029a565b81146102cf57600080fd5b50565b6102c4816102b856fea365627a7a72315820c2d9c81a503f672dc22633bcf12ced08d4f6446766cf1a6133433bedcbe2d8b46c6578706572696d656e74616cf564736f6c63430005100040",
|
|
94
94
|
"sourceMap": "1006:520:97:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1006:520:97;;;;;;;",
|
|
95
95
|
"deployedSourceMap": "1006:520:97:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1006:520:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1063:57;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1127:154;;;;;;;;;:::i;:::-;;1287:237;;;;;;;;;:::i;:::-;;;;;;;;1063:57;;;;;;;;;;;;;;:::o;1127:154::-;1245:22;;;;:15;:22;;;;;;;;;;:29;;;;1127:154::o;1287:237::-;1452:20;;:::i;:::-;-1:-1:-1;;;1495:22:97;;:15;:22;;;;;;;;;;;;1488:29;;;;;;;;;;;;;1287:237::o;1006:520::-;;;;;;;;;;;;;;:::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;;57:78;;;;;169:322;;281:4;269:9;264:3;260:19;256:30;253:2;;;299:1;296;289:12;253:2;317:20;332:4;317:20;;;308:29;-1:-1;388:1;420:49;465:3;445:9;420:49;;;395:75;;-1:-1;406:5;247:244;-1:-1;;247:244;498:130;565:20;;590:33;565:20;590:33;;635:241;;739:2;727:9;718:7;714:23;710:32;707:2;;;755:1;752;745:12;707:2;790:1;807:53;852:7;832:9;807:53;;;797:63;701:175;-1:-1;;;;701:175;883:412;;;1027:2;1015:9;1006:7;1002:23;998:32;995:2;;;1043:1;1040;1033:12;995:2;1078:1;1095:53;1140:7;1120:9;1095:53;;;1085:63;;1057:97;1185:2;1203:76;1271:7;1262:6;1251:9;1247:22;1203:76;;;1193:86;;1164:121;989:306;;;;;;1302:491;;;;1440:2;1428:9;1419:7;1415:23;1411:32;1408:2;;;1456:1;1453;1446:12;1408:2;1491:1;1508:53;1553:7;1533:9;1508:53;;;1498:63;;1470:97;1598:2;1616:53;1661:7;1652:6;1641:9;1637:22;1616:53;;;1606:63;;1577:98;1706:2;1724:53;1769:7;1760:6;1749:9;1745:22;1724:53;;;1714:63;;1685:98;1402:391;;;;;;1851:319;2057:23;;1990:4;1981:14;;;2086:63;1985:3;2057:23;2086:63;;;2010:145;1963:207;;;;2177:103;2250:24;2268:5;2250:24;;;2245:3;2238:37;2232:48;;;2407:305;2571:2;2556:18;;2585:117;2560:9;2675:6;2585:117;;2719:213;2837:2;2822:18;;2851:71;2826:9;2895:6;2851:71;;2939:256;3001:2;2995:9;3027:17;;;3102:18;3087:34;;3123:22;;;3084:62;3081:2;;;3159:1;3156;3149:12;3081:2;3175;3168:22;2979:216;;-1:-1;2979:216;3202:91;;3373:42;3362:54;;3264:24;3345:76;3428:72;3490:5;3473:27;3507:117;3576:24;3594:5;3576:24;;;3569:5;3566:35;3556:2;;3615:1;3612;3605:12;3556:2;3550:74;;3631:117;3700:24;3718:5;3700:24;",
|
|
96
96
|
"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 { SafeMath } from \"@openzeppelin/contracts/math/SafeMath.sol\";\nimport { IInterestSetter } from \"../protocol/interfaces/IInterestSetter.sol\";\nimport { Interest } from \"../protocol/lib/Interest.sol\";\n\n\n/**\n * @title TestInterestSetter\n * @author dYdX\n *\n * Interest setter used for testing that always returns a constant interest rate\n */\ncontract TestInterestSetter is\n IInterestSetter\n{\n mapping (address => Interest.Rate) public g_interestRates;\n\n function setInterestRate(\n address token,\n Interest.Rate memory rate\n )\n public\n {\n g_interestRates[token] = rate;\n }\n\n function getInterestRate(\n address token,\n uint256 /* borrowWei */,\n uint256 /* supplyWei */\n )\n public\n view\n returns (Interest.Rate memory)\n {\n return g_interestRates[token];\n }\n}\n",
|
|
97
|
-
"sourcePath": "/
|
|
97
|
+
"sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestInterestSetter.sol",
|
|
98
98
|
"ast": {
|
|
99
|
-
"absolutePath": "/
|
|
99
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestInterestSetter.sol",
|
|
100
100
|
"exportedSymbols": {
|
|
101
101
|
"TestInterestSetter": [
|
|
102
102
|
36006
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"unitAlias": ""
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
"absolutePath": "/
|
|
145
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol",
|
|
146
146
|
"file": "../protocol/interfaces/IInterestSetter.sol",
|
|
147
147
|
"id": 35967,
|
|
148
148
|
"nodeType": "ImportDirective",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"unitAlias": ""
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"absolutePath": "/
|
|
161
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol",
|
|
162
162
|
"file": "../protocol/lib/Interest.sol",
|
|
163
163
|
"id": 35969,
|
|
164
164
|
"nodeType": "ImportDirective",
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
"src": "603:924:97"
|
|
614
614
|
},
|
|
615
615
|
"legacyAST": {
|
|
616
|
-
"absolutePath": "/
|
|
616
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestInterestSetter.sol",
|
|
617
617
|
"exportedSymbols": {
|
|
618
618
|
"TestInterestSetter": [
|
|
619
619
|
36006
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
"unitAlias": ""
|
|
660
660
|
},
|
|
661
661
|
{
|
|
662
|
-
"absolutePath": "/
|
|
662
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IInterestSetter.sol",
|
|
663
663
|
"file": "../protocol/interfaces/IInterestSetter.sol",
|
|
664
664
|
"id": 35967,
|
|
665
665
|
"nodeType": "ImportDirective",
|
|
@@ -675,7 +675,7 @@
|
|
|
675
675
|
"unitAlias": ""
|
|
676
676
|
},
|
|
677
677
|
{
|
|
678
|
-
"absolutePath": "/
|
|
678
|
+
"absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Interest.sol",
|
|
679
679
|
"file": "../protocol/lib/Interest.sol",
|
|
680
680
|
"id": 35969,
|
|
681
681
|
"nodeType": "ImportDirective",
|
|
@@ -1137,12 +1137,12 @@
|
|
|
1137
1137
|
"1001": {
|
|
1138
1138
|
"events": {},
|
|
1139
1139
|
"links": {},
|
|
1140
|
-
"address": "
|
|
1141
|
-
"transactionHash": "
|
|
1140
|
+
"address": "0xD86C8F0327494034F60e25074420BcCF560D5610",
|
|
1141
|
+
"transactionHash": "0x662dcb9278255d03d651d600f4b12dea6ccd7e943029a7b932431ecf213d4a07"
|
|
1142
1142
|
}
|
|
1143
1143
|
},
|
|
1144
1144
|
"schemaVersion": "3.0.23",
|
|
1145
|
-
"updatedAt": "2022-02-
|
|
1145
|
+
"updatedAt": "2022-02-07T07:18:45.413Z",
|
|
1146
1146
|
"devdoc": {
|
|
1147
1147
|
"author": "dYdX * Interest setter used for testing that always returns a constant interest rate",
|
|
1148
1148
|
"methods": {},
|