@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.
Files changed (200) hide show
  1. package/build/contracts/Account.json +11 -11
  2. package/build/contracts/Actions.json +11 -11
  3. package/build/contracts/Address.json +1 -1
  4. package/build/contracts/Admin.json +23 -23
  5. package/build/contracts/AdminImpl.json +35 -307
  6. package/build/contracts/AdvancedMath.json +7 -7
  7. package/build/contracts/AmmRebalancerProxy.json +577 -621
  8. package/build/contracts/AmmRebalancerProxyV1.json +78 -32
  9. package/build/contracts/Babylonian.json +1 -1
  10. package/build/contracts/Bits.json +9 -9
  11. package/build/contracts/Cache.json +13 -13
  12. package/build/contracts/ChainlinkPriceOracleV1.json +16 -16
  13. package/build/contracts/Context.json +1 -1
  14. package/build/contracts/CustomTestToken.json +9 -9
  15. package/build/contracts/Decimal.json +9 -9
  16. package/build/contracts/DelayedMultiSig.json +9 -9
  17. package/build/contracts/DolomiteAmmERC20.json +11 -11
  18. package/build/contracts/DolomiteAmmFactory.json +14 -52
  19. package/build/contracts/DolomiteAmmLibrary.json +24 -24
  20. package/build/contracts/DolomiteAmmPair.json +27 -27
  21. package/build/contracts/DolomiteAmmRouterProxy.json +30 -363
  22. package/build/contracts/DolomiteMargin.json +21 -67
  23. package/build/contracts/DoubleExponentInterestSetter.json +15 -21
  24. package/build/contracts/EnumerableSet.json +7 -7
  25. package/build/contracts/ErroringOmiseToken.json +9 -9
  26. package/build/contracts/ErroringToken.json +10 -10
  27. package/build/contracts/Events.json +17 -17
  28. package/build/contracts/ExcessivelySafeCall.json +35 -35
  29. package/build/contracts/Exchange.json +15 -15
  30. package/build/contracts/Expiry.json +36 -36
  31. package/build/contracts/Getters.json +33 -33
  32. package/build/contracts/IAutoTrader.json +9 -9
  33. package/build/contracts/ICallee.json +7 -7
  34. package/build/contracts/IChainlinkAggregator.json +5 -5
  35. package/build/contracts/IDolomiteAmmERC20.json +5 -5
  36. package/build/contracts/IDolomiteAmmFactory.json +9 -9
  37. package/build/contracts/IDolomiteAmmPair.json +9 -9
  38. package/build/contracts/IDolomiteMargin.json +23 -23
  39. package/build/contracts/IERC20.json +1 -1
  40. package/build/contracts/IERC20Detailed.json +5 -5
  41. package/build/contracts/IExchangeWrapper.json +5 -5
  42. package/build/contracts/IExpiry.json +9 -9
  43. package/build/contracts/IInterestSetter.json +7 -7
  44. package/build/contracts/ILiquidationCallback.json +7 -7
  45. package/build/contracts/IMakerOracle.json +5 -5
  46. package/build/contracts/IOasisDex.json +5 -5
  47. package/build/contracts/IPriceOracle.json +7 -7
  48. package/build/contracts/IRecyclable.json +9 -9
  49. package/build/contracts/ITransferProxy.json +5 -5
  50. package/build/contracts/IUniswapV2Callee.json +5 -5
  51. package/build/contracts/IUniswapV2Factory.json +5 -5
  52. package/build/contracts/IUniswapV2Pair.json +5 -5
  53. package/build/contracts/IUniswapV2Router.json +5 -5
  54. package/build/contracts/IWETH.json +5 -5
  55. package/build/contracts/Interest.json +15 -15
  56. package/build/contracts/LiquidateOrVaporizeImpl.json +32 -83
  57. package/build/contracts/LiquidatorProxyHelper.json +23 -23
  58. package/build/contracts/LiquidatorProxyV1.json +30 -36
  59. package/build/contracts/LiquidatorProxyV1WithAmm.json +49 -105
  60. package/build/contracts/Math.json +1 -1
  61. package/build/contracts/Migrations.json +8 -14
  62. package/build/contracts/Monetary.json +7 -7
  63. package/build/contracts/MultiCall.json +8 -14
  64. package/build/contracts/MultiSig.json +7 -7
  65. package/build/contracts/OmiseToken.json +8 -8
  66. package/build/contracts/OnlyDolomiteMargin.json +11 -11
  67. package/build/contracts/Operation.json +15 -15
  68. package/build/contracts/OperationImpl.json +39 -47
  69. package/build/contracts/Ownable.json +1 -1
  70. package/build/contracts/PartiallyDelayedMultiSig.json +9 -9
  71. package/build/contracts/PayableProxy.json +17 -23
  72. package/build/contracts/Permission.json +11 -11
  73. package/build/contracts/PolynomialInterestSetter.json +13 -13
  74. package/build/contracts/RecyclableTokenProxy.json +25 -25
  75. package/build/contracts/ReentrancyGuard.json +1 -1
  76. package/build/contracts/Require.json +7 -7
  77. package/build/contracts/SafeERC20.json +1 -1
  78. package/build/contracts/SafeETH.json +7 -7
  79. package/build/contracts/SafeLiquidationCallback.json +17 -17
  80. package/build/contracts/SafeMath.json +1 -1
  81. package/build/contracts/SignedOperationProxy.json +21 -104
  82. package/build/contracts/SimpleFeeOwner.json +18 -63
  83. package/build/contracts/State.json +9 -9
  84. package/build/contracts/Storage.json +37 -37
  85. package/build/contracts/TestAmmRebalancerProxy.json +32 -58
  86. package/build/contracts/TestAutoTrader.json +22 -22
  87. package/build/contracts/TestBtcUsdChainlinkAggregator.json +10 -10
  88. package/build/contracts/TestCallee.json +19 -19
  89. package/build/contracts/TestChainlinkPriceOracleV1.json +10 -94
  90. package/build/contracts/TestCounter.json +7 -7
  91. package/build/contracts/TestDaiUsdChainlinkAggregator.json +11 -11
  92. package/build/contracts/TestDolomiteMargin.json +22 -22
  93. package/build/contracts/TestDoubleExponentInterestSetter.json +10 -10
  94. package/build/contracts/TestEthUsdChainlinkAggregator.json +11 -11
  95. package/build/contracts/TestExchangeWrapper.json +28 -28
  96. package/build/contracts/TestInterestSetter.json +13 -13
  97. package/build/contracts/TestLib.json +22 -22
  98. package/build/contracts/TestLinkUsdChainlinkAggregator.json +11 -11
  99. package/build/contracts/TestLiquidateCallback.json +719 -719
  100. package/build/contracts/TestLiquidationCallback.json +13 -13
  101. package/build/contracts/TestLrcEthChainlinkAggregator.json +11 -11
  102. package/build/contracts/TestMakerOracle.json +10 -10
  103. package/build/contracts/TestMaticUsdChainlinkAggregator.json +10 -10
  104. package/build/contracts/TestOasisDex.json +12 -12
  105. package/build/contracts/TestOperationImpl.json +14 -14
  106. package/build/contracts/TestPolynomialInterestSetter.json +10 -10
  107. package/build/contracts/TestPriceAggregator.json +9 -9
  108. package/build/contracts/TestPriceOracle.json +13 -13
  109. package/build/contracts/TestRecyclableToken.json +9 -9
  110. package/build/contracts/TestSimpleCallee.json +15 -15
  111. package/build/contracts/TestToken.json +9 -9
  112. package/build/contracts/TestTrader.json +17 -17
  113. package/build/contracts/TestUniswapAmmRebalancerProxy.json +16 -16
  114. package/build/contracts/TestUsdcUsdChainlinkAggregator.json +11 -11
  115. package/build/contracts/TestWETH.json +9 -9
  116. package/build/contracts/Time.json +9 -9
  117. package/build/contracts/Token.json +9 -9
  118. package/build/contracts/TokenA.json +10 -10
  119. package/build/contracts/TokenB.json +10 -10
  120. package/build/contracts/TokenC.json +10 -10
  121. package/build/contracts/TokenD.json +10 -10
  122. package/build/contracts/TokenE.json +10 -10
  123. package/build/contracts/TokenF.json +10 -10
  124. package/build/contracts/TransferProxy.json +22 -28
  125. package/build/contracts/TypedSignature.json +9 -9
  126. package/build/contracts/Types.json +9 -9
  127. package/build/contracts/UQ112x112.json +7 -7
  128. package/build/contracts/UniswapV2ERC20.json +7 -7
  129. package/build/contracts/UniswapV2Factory.json +12 -12
  130. package/build/contracts/UniswapV2Library.json +20 -20
  131. package/build/contracts/UniswapV2Pair.json +17 -17
  132. package/build/contracts/UniswapV2Router02.json +16 -16
  133. package/build/contracts/WETH9.json +1 -1
  134. package/contracts/external/amm/DolomiteAmmERC20.sol +135 -0
  135. package/contracts/external/amm/DolomiteAmmFactory.sol +122 -0
  136. package/contracts/external/amm/DolomiteAmmPair.sol +573 -0
  137. package/contracts/external/amm/SimpleFeeOwner.sol +107 -0
  138. package/contracts/external/helpers/LiquidatorProxyHelper.sol +252 -0
  139. package/contracts/external/helpers/OnlyDolomiteMargin.sol +63 -0
  140. package/contracts/external/interestsetters/DoubleExponentInterestSetter.sol +212 -0
  141. package/contracts/external/interestsetters/PolynomialInterestSetter.sol +205 -0
  142. package/contracts/external/interfaces/IChainlinkAggregator.sol +33 -0
  143. package/contracts/external/interfaces/IDolomiteAmmERC20.sol +52 -0
  144. package/contracts/external/interfaces/IDolomiteAmmFactory.sol +42 -0
  145. package/contracts/external/interfaces/IDolomiteAmmPair.sol +116 -0
  146. package/contracts/external/interfaces/IExpiry.sol +70 -0
  147. package/contracts/external/interfaces/IMakerOracle.sol +52 -0
  148. package/contracts/external/interfaces/IOasisDex.sol +326 -0
  149. package/contracts/external/interfaces/ITransferProxy.sol +53 -0
  150. package/contracts/external/interfaces/IUniswapV2Router.sol +134 -0
  151. package/contracts/external/lib/AdvancedMath.sol +23 -0
  152. package/contracts/external/lib/DolomiteAmmLibrary.sol +323 -0
  153. package/contracts/external/lib/TypedSignature.sol +120 -0
  154. package/contracts/external/lib/UQ112x112.sol +22 -0
  155. package/contracts/external/multisig/DelayedMultiSig.sol +206 -0
  156. package/contracts/external/multisig/MultiSig.sol +571 -0
  157. package/contracts/external/multisig/PartiallyDelayedMultiSig.sol +174 -0
  158. package/contracts/external/oracles/ChainlinkPriceOracleV1.sol +197 -0
  159. package/contracts/external/oracles/TestChainlinkPriceOracleV1.sol +98 -0
  160. package/contracts/external/proxies/AmmRebalancerProxyV1.sol +465 -0
  161. package/contracts/external/proxies/DolomiteAmmRouterProxy.sol +877 -0
  162. package/contracts/external/proxies/LiquidatorProxyV1.sol +507 -0
  163. package/contracts/external/proxies/LiquidatorProxyV1WithAmm.sol +574 -0
  164. package/contracts/external/proxies/PayableProxy.sol +146 -0
  165. package/contracts/external/proxies/RecyclableTokenProxy.sol +463 -0
  166. package/contracts/external/proxies/SignedOperationProxy.sol +553 -0
  167. package/contracts/external/proxies/TransferProxy.sol +207 -0
  168. package/contracts/external/traders/Expiry.sol +532 -0
  169. package/contracts/external/uniswap-v2/UniswapV2ERC20.sol +118 -0
  170. package/contracts/external/uniswap-v2/UniswapV2Factory.sol +67 -0
  171. package/contracts/external/uniswap-v2/UniswapV2Pair.sol +283 -0
  172. package/contracts/external/uniswap-v2/UniswapV2Router02.sol +566 -0
  173. package/contracts/external/uniswap-v2/interfaces/IUniswapV2Callee.sol +13 -0
  174. package/contracts/external/uniswap-v2/interfaces/IUniswapV2Factory.sol +18 -0
  175. package/contracts/external/uniswap-v2/interfaces/IUniswapV2Pair.sol +67 -0
  176. package/contracts/external/uniswap-v2/interfaces/IWETH.sol +7 -0
  177. package/contracts/external/uniswap-v2/libraries/SafeETH.sol +29 -0
  178. package/contracts/external/uniswap-v2/libraries/UniswapV2Library.sol +117 -0
  179. package/contracts/external/utils/MultiCall.sol +95 -0
  180. package/contracts/protocol/impl/artifacts/OperationImpl.json +80 -0
  181. package/contracts/protocol/impl/artifacts/OperationImpl_metadata.json +193 -0
  182. package/dist/build/published_contracts/AdminImpl.json +2 -2
  183. package/dist/build/published_contracts/AmmRebalancerProxyV1.json +5 -0
  184. package/dist/build/published_contracts/ChainlinkPriceOracleV1.json +1 -1
  185. package/dist/build/published_contracts/DolomiteAmmFactory.json +1 -1
  186. package/dist/build/published_contracts/DolomiteAmmRouterProxy.json +1 -1
  187. package/dist/build/published_contracts/DoubleExponentInterestSetter.json +2 -2
  188. package/dist/build/published_contracts/Expiry.json +1 -1
  189. package/dist/build/published_contracts/LiquidatorProxyV1.json +1 -1
  190. package/dist/build/published_contracts/LiquidatorProxyV1WithAmm.json +1 -1
  191. package/dist/build/published_contracts/MultiCall.json +1 -1
  192. package/dist/build/published_contracts/PayableProxy.json +2 -2
  193. package/dist/build/published_contracts/SignedOperationProxy.json +2 -2
  194. package/dist/build/published_contracts/SimpleFeeOwner.json +1 -1
  195. package/dist/build/published_contracts/TestUniswapAmmRebalancerProxy.json +140 -0
  196. package/dist/build/published_contracts/TransferProxy.json +1 -1
  197. package/dist/src/lib/Contracts.d.ts +3 -1
  198. package/dist/src/lib/Contracts.js +7 -3
  199. package/dist/src/lib/Contracts.js.map +1 -1
  200. package/package.json +2 -1
@@ -274,15 +274,15 @@
274
274
  "type": "function"
275
275
  }
276
276
  ],
277
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dolomiteMargin\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"shouldRevert\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldRevertWithMessage\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldConsumeTonsOfGas\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldReturnBomb\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"accountNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct Types.Wei\",\"name\":\"heldDeltaWei\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct Types.Wei\",\"name\":\"owedDeltaWei\",\"type\":\"tuple\"}],\"name\":\"LogOnLiquidateInputs\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"DOLOMITE_MARGIN\",\"outputs\":[{\"internalType\":\"contract IDolomiteMargin\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"FILE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_CONSUME_TONS_OF_GAS\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_RETURN_BOMB\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_REVERT\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_REVERT_WITH_MESSAGE\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"accountNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"heldDeltaWei\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"owedDeltaWei\",\"type\":\"tuple\"}],\"name\":\"onLiquidate\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"setLocalOperator\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"string\",\"name\":\"revertMessage\",\"type\":\"string\"}],\"name\":\"setRevertMessage\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLiquidationCallback.sol\":\"TestLiquidationCallback\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/helpers/OnlyDolomiteMargin.sol\":{\"keccak256\":\"0xfc9ce2f5a274ec66668c133f09fe213bc1a6a739f9147f4357a3493094de8deb\",\"urls\":[\"bzz-raw://e45442587f111fa0d85dd85a4e07993f5fecd1afce4f457ed21441f8b0abb937\",\"dweb:/ipfs/QmaNq3j3PUwb8Wrx2gEmFFsVa2GByDEkDCPGdwo2qvMeKh\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IDolomiteMargin.sol\":{\"keccak256\":\"0x1e73364879c267fdd2bfd871e62ee58ee3d65fbef3b71e3cc104fbff499eca6c\",\"urls\":[\"bzz-raw://e3b1327980a5949afd52cff4713f47ee4fdee9a8b376ceaa3402f5c9696b8c1b\",\"dweb:/ipfs/QmbhQzVEdaraPJizT5DTtk6CDzH3guHNipHW5T23uTtFkX\"]},\"/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/lib/Account.sol\":{\"keccak256\":\"0x0ab9a3fabc89984dff748af63d4319ee134051de2d7fc560e34ebaac86198396\",\"urls\":[\"bzz-raw://ab67f499a8ef83dc7e7cf7176a0f66eced40fa228eda8dd2d47e066ab985cf42\",\"dweb:/ipfs/QmXRHbsEYxr2Qsfsj5psXGV5LaPZHuzLiEXzSQJ77WSE27\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Actions.sol\":{\"keccak256\":\"0x44ec62b766a88a2f65267991e76cab88711e733b826dc9e578cb6ad6b38b2445\",\"urls\":[\"bzz-raw://731a8d44e57c9dcd7fbdefc37a6b5889c0d06defb3bd66b921b2a7db0edf0103\",\"dweb:/ipfs/QmcVbXc9oi5DMxjPtsBF76oJzD6zVjm7RuXgJfP3Goqrrb\"]},\"/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\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLiquidationCallback.sol\":{\"keccak256\":\"0x596308c84f9e97d9e5bda5545e37678d22c168a127a892a741406df9bb33a810\",\"urls\":[\"bzz-raw://3f3682ce52fbf98864bf3eaa7d62298d75b6f456414d0423d7137b185ead43ba\",\"dweb:/ipfs/QmSEFS2WVS6UfMzfgbrderhitEQ8k7YKAB75bQgaXvWkqW\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzz-raw://59fd025151435da35faa8093a5c7a17de02de9d08ad27275c5cdf05050820d91\",\"dweb:/ipfs/QmQMvwEcPhoRXzbXyrdoeRtvLoifUW9Qh7Luho7bmUPRkc\"]}},\"version\":1}",
278
- "bytecode": "0x608060405260006002553480156200001657600080fd5b5060405162000ee738038062000ee78339810160408190526200003991620000d5565b600080546001600160a01b0319166001600160a01b03969096169590951760ff60a01b1916600160a01b941515949094029390931760ff60a81b1916600160a81b921515929092029190911760ff60b01b1916600160b01b911515919091021760ff60b81b1916600160b81b9115159190910217905562000198565b8051620000c28162000173565b92915050565b8051620000c2816200018d565b600080600080600060a08688031215620000ee57600080fd5b6000620000fc8888620000b5565b95505060206200010f88828901620000c8565b94505060406200012288828901620000c8565b93505060606200013588828901620000c8565b92505060806200014888828901620000c8565b9150509295509295909350565b6000620000c28262000167565b151590565b6001600160a01b031690565b6200017e8162000155565b81146200018a57600080fd5b50565b6200017e8162000162565b610d3f80620001a86000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c8063913948ef11610076578063b3b14a411161005b578063b3b14a4114610115578063d5dbd51514610128578063fc17894e1461013d576100a3565b8063913948ef146101035780639bd954841461010b576100a3565b806305fc0824146100a857806315c14a4a146100c65780636812f616146100db578063839c1faa146100e3575b600080fd5b6100b0610145565b6040516100bd9190610b51565b60405180910390f35b6100ce610168565b6040516100bd9190610b7e565b6100b0610184565b6100f66100f1366004610876565b6101a8565b6040516100bd9190610b6d565b6100b0610396565b6101136103b8565b005b610113610123366004610834565b6104e4565b6101306104f5565b6040516100bd9190610b5f565b6100b0610519565b600054760100000000000000000000000000000000000000000000900460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005477010000000000000000000000000000000000000000000000900460ff1681565b60005460609074010000000000000000000000000000000000000000900460ff161561033d576000547501000000000000000000000000000000000000000000900460ff16156102b5576001805460018160011615610100020316600290049050600014156102625761025d60007f546573744c69717569646174696f6e43616c6c6261636b0000000000000000007f707572706f736566756c20726576657273696f6e00000000000000000000000061053a565b6102a0565b60016040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102979190610b8c565b60405180910390fd5b5060408051602081019091526000815261038d565b600054760100000000000000000000000000000000000000000000900460ff161561030f5760005b61c3508110156102f957600280546001908101909155016102dd565b505060408051602081019091526000815261038d565b60005477010000000000000000000000000000000000000000000000900460ff16156100a357620f42406000fd5b7f6b543b502d2b083d076839373de02ded08dba6ed461b380b9bcde72d11f8fec98686868686604051610374959493929190610b9d565b60405180910390a1506040805160208101909152600081525b95945050505050565b6000547501000000000000000000000000000000000000000000900460ff1681565b604080516001808252818301909252606091816020015b6103d76106b8565b8152602001906001900390816103cf57905050905033816000815181106103fa57fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060018160008151811061044757fe5b6020908102919091018101519115159101526000546040517f85b53fc800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906385b53fc8906104af908490600401610b39565b600060405180830381600087803b1580156104c957600080fd5b505af11580156104dd573d6000803e3d6000fd5b5050505050565b6104f0600183836106cf565b505050565b7f546573744c69717569646174696f6e43616c6c6261636b00000000000000000081565b60005474010000000000000000000000000000000000000000900460ff1681565b826104f057610548826105e2565b7f3a20000000000000000000000000000000000000000000000000000000000000610572836105e2565b60405160200161058493929190610b11565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261029791600401610b6d565b606080826040516020016105f69190610afc565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b801561069f5781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091019082908290811061066257fe5b01602001517fff00000000000000000000000000000000000000000000000000000000000000161561069a57600101815290506106b3565b610629565b505060408051600081526020810190915290505b919050565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061072e578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561075b565b8280016001018555821561075b579182015b8281111561075b578235825591602001919060010190610740565b5061076792915061076b565b5090565b61078591905b808211156107675760008155600101610771565b90565b803561079381610cdc565b92915050565b60008083601f8401126107ab57600080fd5b50813567ffffffffffffffff8111156107c357600080fd5b6020830191508360018202830111156107db57600080fd5b9250929050565b6000604082840312156107f457600080fd5b6107fe6040610be9565b9050600061080c8484610788565b825250602061081d84848301610829565b60208301525092915050565b803561079381610cf3565b6000806020838503121561084757600080fd5b823567ffffffffffffffff81111561085e57600080fd5b61086a85828601610799565b92509250509250929050565b600080600080600060e0868803121561088e57600080fd5b600061089a8888610829565b95505060206108ab88828901610829565b94505060406108bc888289016107e2565b93505060806108cd88828901610829565b92505060a06108de888289016107e2565b9150509295509295909350565b60006108f78383610aae565b505060400190565b61090881610c2f565b82525050565b600061091982610c22565b6109238185610c26565b935061092e83610c10565b8060005b8381101561095c57815161094688826108eb565b975061095183610c10565b925050600101610932565b509495945050505050565b61090881610c3a565b61090861097c82610c3f565b610785565b61090881610785565b61090861097c82610785565b60006109a182610c22565b6109ab8185610c26565b93506109bb818560208601610c88565b6109c481610cb4565b9093019392505050565b60006109d982610c22565b6109e381856106b3565b93506109f3818560208601610c88565b9290920192915050565b61090881610c7d565b600081546001811660008114610a235760018114610a6757610aa6565b607f6002830416610a348187610c26565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168152955050602085019250610aa6565b60028204610a758187610c26565b9550610a8085610c16565b60005b82811015610a9f57815488820152600190910190602001610a83565b8701945050505b505092915050565b80516040830190610abf84826108ff565b506020820151610ad26020850182610967565b50505050565b80516040830190610ae98482610967565b506020820151610ad26020850182610981565b6000610b08828461098a565b50602001919050565b6000610b1d82866109ce565b9150610b298285610970565b60028201915061038d82846109ce565b60208082528101610b4a818461090e565b9392505050565b602081016107938284610967565b602081016107938284610981565b60208082528101610b4a8184610996565b6020810161079382846109fd565b60208082528101610b4a8184610a06565b60e08101610bab8288610981565b610bb86020830187610981565b610bc56040830186610ad8565b610bd26080830185610981565b610bdf60a0830184610ad8565b9695505050505050565b60405181810167ffffffffffffffff81118282101715610c0857600080fd5b604052919050565b60200190565b60009081526020902090565b5190565b90815260200190565b600061079382610c64565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b73ffffffffffffffffffffffffffffffffffffffff1690565b600061079382610c2f565b60005b83811015610ca3578181015183820152602001610c8b565b83811115610ad25750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b610ce581610c3a565b8114610cf057600080fd5b50565b610ce58161078556fea365627a7a72315820fced1bba145e422618707ed4c29aa0dab2784f6ea5f0c302250db19b1bceddf96c6578706572696d656e74616cf564736f6c63430005100040",
279
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a35760003560e01c8063913948ef11610076578063b3b14a411161005b578063b3b14a4114610115578063d5dbd51514610128578063fc17894e1461013d576100a3565b8063913948ef146101035780639bd954841461010b576100a3565b806305fc0824146100a857806315c14a4a146100c65780636812f616146100db578063839c1faa146100e3575b600080fd5b6100b0610145565b6040516100bd9190610b51565b60405180910390f35b6100ce610168565b6040516100bd9190610b7e565b6100b0610184565b6100f66100f1366004610876565b6101a8565b6040516100bd9190610b6d565b6100b0610396565b6101136103b8565b005b610113610123366004610834565b6104e4565b6101306104f5565b6040516100bd9190610b5f565b6100b0610519565b600054760100000000000000000000000000000000000000000000900460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005477010000000000000000000000000000000000000000000000900460ff1681565b60005460609074010000000000000000000000000000000000000000900460ff161561033d576000547501000000000000000000000000000000000000000000900460ff16156102b5576001805460018160011615610100020316600290049050600014156102625761025d60007f546573744c69717569646174696f6e43616c6c6261636b0000000000000000007f707572706f736566756c20726576657273696f6e00000000000000000000000061053a565b6102a0565b60016040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102979190610b8c565b60405180910390fd5b5060408051602081019091526000815261038d565b600054760100000000000000000000000000000000000000000000900460ff161561030f5760005b61c3508110156102f957600280546001908101909155016102dd565b505060408051602081019091526000815261038d565b60005477010000000000000000000000000000000000000000000000900460ff16156100a357620f42406000fd5b7f6b543b502d2b083d076839373de02ded08dba6ed461b380b9bcde72d11f8fec98686868686604051610374959493929190610b9d565b60405180910390a1506040805160208101909152600081525b95945050505050565b6000547501000000000000000000000000000000000000000000900460ff1681565b604080516001808252818301909252606091816020015b6103d76106b8565b8152602001906001900390816103cf57905050905033816000815181106103fa57fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060018160008151811061044757fe5b6020908102919091018101519115159101526000546040517f85b53fc800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906385b53fc8906104af908490600401610b39565b600060405180830381600087803b1580156104c957600080fd5b505af11580156104dd573d6000803e3d6000fd5b5050505050565b6104f0600183836106cf565b505050565b7f546573744c69717569646174696f6e43616c6c6261636b00000000000000000081565b60005474010000000000000000000000000000000000000000900460ff1681565b826104f057610548826105e2565b7f3a20000000000000000000000000000000000000000000000000000000000000610572836105e2565b60405160200161058493929190610b11565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261029791600401610b6d565b606080826040516020016105f69190610afc565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b801561069f5781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091019082908290811061066257fe5b01602001517fff00000000000000000000000000000000000000000000000000000000000000161561069a57600101815290506106b3565b610629565b505060408051600081526020810190915290505b919050565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061072e578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561075b565b8280016001018555821561075b579182015b8281111561075b578235825591602001919060010190610740565b5061076792915061076b565b5090565b61078591905b808211156107675760008155600101610771565b90565b803561079381610cdc565b92915050565b60008083601f8401126107ab57600080fd5b50813567ffffffffffffffff8111156107c357600080fd5b6020830191508360018202830111156107db57600080fd5b9250929050565b6000604082840312156107f457600080fd5b6107fe6040610be9565b9050600061080c8484610788565b825250602061081d84848301610829565b60208301525092915050565b803561079381610cf3565b6000806020838503121561084757600080fd5b823567ffffffffffffffff81111561085e57600080fd5b61086a85828601610799565b92509250509250929050565b600080600080600060e0868803121561088e57600080fd5b600061089a8888610829565b95505060206108ab88828901610829565b94505060406108bc888289016107e2565b93505060806108cd88828901610829565b92505060a06108de888289016107e2565b9150509295509295909350565b60006108f78383610aae565b505060400190565b61090881610c2f565b82525050565b600061091982610c22565b6109238185610c26565b935061092e83610c10565b8060005b8381101561095c57815161094688826108eb565b975061095183610c10565b925050600101610932565b509495945050505050565b61090881610c3a565b61090861097c82610c3f565b610785565b61090881610785565b61090861097c82610785565b60006109a182610c22565b6109ab8185610c26565b93506109bb818560208601610c88565b6109c481610cb4565b9093019392505050565b60006109d982610c22565b6109e381856106b3565b93506109f3818560208601610c88565b9290920192915050565b61090881610c7d565b600081546001811660008114610a235760018114610a6757610aa6565b607f6002830416610a348187610c26565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168152955050602085019250610aa6565b60028204610a758187610c26565b9550610a8085610c16565b60005b82811015610a9f57815488820152600190910190602001610a83565b8701945050505b505092915050565b80516040830190610abf84826108ff565b506020820151610ad26020850182610967565b50505050565b80516040830190610ae98482610967565b506020820151610ad26020850182610981565b6000610b08828461098a565b50602001919050565b6000610b1d82866109ce565b9150610b298285610970565b60028201915061038d82846109ce565b60208082528101610b4a818461090e565b9392505050565b602081016107938284610967565b602081016107938284610981565b60208082528101610b4a8184610996565b6020810161079382846109fd565b60208082528101610b4a8184610a06565b60e08101610bab8288610981565b610bb86020830187610981565b610bc56040830186610ad8565b610bd26080830185610981565b610bdf60a0830184610ad8565b9695505050505050565b60405181810167ffffffffffffffff81118282101715610c0857600080fd5b604052919050565b60200190565b60009081526020902090565b5190565b90815260200190565b600061079382610c64565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b73ffffffffffffffffffffffffffffffffffffffff1690565b600061079382610c2f565b60005b83811015610ca3578181015183820152602001610c8b565b83811115610ad25750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b610ce581610c3a565b8114610cf057600080fd5b50565b610ce58161078556fea365627a7a72315820fced1bba145e422618707ed4c29aa0dab2784f6ea5f0c302250db19b1bceddf96c6578706572696d656e74616cf564736f6c63430005100040",
277
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dolomiteMargin\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"shouldRevert\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldRevertWithMessage\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldConsumeTonsOfGas\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldReturnBomb\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"accountNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct Types.Wei\",\"name\":\"heldDeltaWei\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct Types.Wei\",\"name\":\"owedDeltaWei\",\"type\":\"tuple\"}],\"name\":\"LogOnLiquidateInputs\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"DOLOMITE_MARGIN\",\"outputs\":[{\"internalType\":\"contract IDolomiteMargin\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"FILE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_CONSUME_TONS_OF_GAS\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_RETURN_BOMB\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_REVERT\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"SHOULD_REVERT_WITH_MESSAGE\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"accountNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"heldMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"heldDeltaWei\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"owedMarketId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"sign\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct Types.Wei\",\"name\":\"owedDeltaWei\",\"type\":\"tuple\"}],\"name\":\"onLiquidate\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"setLocalOperator\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"string\",\"name\":\"revertMessage\",\"type\":\"string\"}],\"name\":\"setRevertMessage\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLiquidationCallback.sol\":\"TestLiquidationCallback\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/helpers/OnlyDolomiteMargin.sol\":{\"keccak256\":\"0xfc9ce2f5a274ec66668c133f09fe213bc1a6a739f9147f4357a3493094de8deb\",\"urls\":[\"bzz-raw://e45442587f111fa0d85dd85a4e07993f5fecd1afce4f457ed21441f8b0abb937\",\"dweb:/ipfs/QmaNq3j3PUwb8Wrx2gEmFFsVa2GByDEkDCPGdwo2qvMeKh\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/interfaces/IDolomiteMargin.sol\":{\"keccak256\":\"0x1e73364879c267fdd2bfd871e62ee58ee3d65fbef3b71e3cc104fbff499eca6c\",\"urls\":[\"bzz-raw://e3b1327980a5949afd52cff4713f47ee4fdee9a8b376ceaa3402f5c9696b8c1b\",\"dweb:/ipfs/QmbhQzVEdaraPJizT5DTtk6CDzH3guHNipHW5T23uTtFkX\"]},\"/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/lib/Account.sol\":{\"keccak256\":\"0x0ab9a3fabc89984dff748af63d4319ee134051de2d7fc560e34ebaac86198396\",\"urls\":[\"bzz-raw://ab67f499a8ef83dc7e7cf7176a0f66eced40fa228eda8dd2d47e066ab985cf42\",\"dweb:/ipfs/QmXRHbsEYxr2Qsfsj5psXGV5LaPZHuzLiEXzSQJ77WSE27\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Actions.sol\":{\"keccak256\":\"0x44ec62b766a88a2f65267991e76cab88711e733b826dc9e578cb6ad6b38b2445\",\"urls\":[\"bzz-raw://731a8d44e57c9dcd7fbdefc37a6b5889c0d06defb3bd66b921b2a7db0edf0103\",\"dweb:/ipfs/QmcVbXc9oi5DMxjPtsBF76oJzD6zVjm7RuXgJfP3Goqrrb\"]},\"/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\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLiquidationCallback.sol\":{\"keccak256\":\"0x596308c84f9e97d9e5bda5545e37678d22c168a127a892a741406df9bb33a810\",\"urls\":[\"bzz-raw://3f3682ce52fbf98864bf3eaa7d62298d75b6f456414d0423d7137b185ead43ba\",\"dweb:/ipfs/QmSEFS2WVS6UfMzfgbrderhitEQ8k7YKAB75bQgaXvWkqW\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzz-raw://59fd025151435da35faa8093a5c7a17de02de9d08ad27275c5cdf05050820d91\",\"dweb:/ipfs/QmQMvwEcPhoRXzbXyrdoeRtvLoifUW9Qh7Luho7bmUPRkc\"]}},\"version\":1}",
278
+ "bytecode": "0x608060405260006002553480156200001657600080fd5b5060405162000ee738038062000ee78339810160408190526200003991620000d5565b600080546001600160a01b0319166001600160a01b03969096169590951760ff60a01b1916600160a01b941515949094029390931760ff60a81b1916600160a81b921515929092029190911760ff60b01b1916600160b01b911515919091021760ff60b81b1916600160b81b9115159190910217905562000198565b8051620000c28162000173565b92915050565b8051620000c2816200018d565b600080600080600060a08688031215620000ee57600080fd5b6000620000fc8888620000b5565b95505060206200010f88828901620000c8565b94505060406200012288828901620000c8565b93505060606200013588828901620000c8565b92505060806200014888828901620000c8565b9150509295509295909350565b6000620000c28262000167565b151590565b6001600160a01b031690565b6200017e8162000155565b81146200018a57600080fd5b50565b6200017e8162000162565b610d3f80620001a86000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c8063913948ef11610076578063b3b14a411161005b578063b3b14a4114610115578063d5dbd51514610128578063fc17894e1461013d576100a3565b8063913948ef146101035780639bd954841461010b576100a3565b806305fc0824146100a857806315c14a4a146100c65780636812f616146100db578063839c1faa146100e3575b600080fd5b6100b0610145565b6040516100bd9190610b51565b60405180910390f35b6100ce610168565b6040516100bd9190610b7e565b6100b0610184565b6100f66100f1366004610876565b6101a8565b6040516100bd9190610b6d565b6100b0610396565b6101136103b8565b005b610113610123366004610834565b6104e4565b6101306104f5565b6040516100bd9190610b5f565b6100b0610519565b600054760100000000000000000000000000000000000000000000900460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005477010000000000000000000000000000000000000000000000900460ff1681565b60005460609074010000000000000000000000000000000000000000900460ff161561033d576000547501000000000000000000000000000000000000000000900460ff16156102b5576001805460018160011615610100020316600290049050600014156102625761025d60007f546573744c69717569646174696f6e43616c6c6261636b0000000000000000007f707572706f736566756c20726576657273696f6e00000000000000000000000061053a565b6102a0565b60016040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102979190610b8c565b60405180910390fd5b5060408051602081019091526000815261038d565b600054760100000000000000000000000000000000000000000000900460ff161561030f5760005b61c3508110156102f957600280546001908101909155016102dd565b505060408051602081019091526000815261038d565b60005477010000000000000000000000000000000000000000000000900460ff16156100a357620f42406000fd5b7f6b543b502d2b083d076839373de02ded08dba6ed461b380b9bcde72d11f8fec98686868686604051610374959493929190610b9d565b60405180910390a1506040805160208101909152600081525b95945050505050565b6000547501000000000000000000000000000000000000000000900460ff1681565b604080516001808252818301909252606091816020015b6103d76106b8565b8152602001906001900390816103cf57905050905033816000815181106103fa57fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060018160008151811061044757fe5b6020908102919091018101519115159101526000546040517f85b53fc800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906385b53fc8906104af908490600401610b39565b600060405180830381600087803b1580156104c957600080fd5b505af11580156104dd573d6000803e3d6000fd5b5050505050565b6104f0600183836106cf565b505050565b7f546573744c69717569646174696f6e43616c6c6261636b00000000000000000081565b60005474010000000000000000000000000000000000000000900460ff1681565b826104f057610548826105e2565b7f3a20000000000000000000000000000000000000000000000000000000000000610572836105e2565b60405160200161058493929190610b11565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261029791600401610b6d565b606080826040516020016105f69190610afc565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b801561069f5781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091019082908290811061066257fe5b01602001517fff00000000000000000000000000000000000000000000000000000000000000161561069a57600101815290506106b3565b610629565b505060408051600081526020810190915290505b919050565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061072e578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561075b565b8280016001018555821561075b579182015b8281111561075b578235825591602001919060010190610740565b5061076792915061076b565b5090565b61078591905b808211156107675760008155600101610771565b90565b803561079381610cdc565b92915050565b60008083601f8401126107ab57600080fd5b50813567ffffffffffffffff8111156107c357600080fd5b6020830191508360018202830111156107db57600080fd5b9250929050565b6000604082840312156107f457600080fd5b6107fe6040610be9565b9050600061080c8484610788565b825250602061081d84848301610829565b60208301525092915050565b803561079381610cf3565b6000806020838503121561084757600080fd5b823567ffffffffffffffff81111561085e57600080fd5b61086a85828601610799565b92509250509250929050565b600080600080600060e0868803121561088e57600080fd5b600061089a8888610829565b95505060206108ab88828901610829565b94505060406108bc888289016107e2565b93505060806108cd88828901610829565b92505060a06108de888289016107e2565b9150509295509295909350565b60006108f78383610aae565b505060400190565b61090881610c2f565b82525050565b600061091982610c22565b6109238185610c26565b935061092e83610c10565b8060005b8381101561095c57815161094688826108eb565b975061095183610c10565b925050600101610932565b509495945050505050565b61090881610c3a565b61090861097c82610c3f565b610785565b61090881610785565b61090861097c82610785565b60006109a182610c22565b6109ab8185610c26565b93506109bb818560208601610c88565b6109c481610cb4565b9093019392505050565b60006109d982610c22565b6109e381856106b3565b93506109f3818560208601610c88565b9290920192915050565b61090881610c7d565b600081546001811660008114610a235760018114610a6757610aa6565b607f6002830416610a348187610c26565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168152955050602085019250610aa6565b60028204610a758187610c26565b9550610a8085610c16565b60005b82811015610a9f57815488820152600190910190602001610a83565b8701945050505b505092915050565b80516040830190610abf84826108ff565b506020820151610ad26020850182610967565b50505050565b80516040830190610ae98482610967565b506020820151610ad26020850182610981565b6000610b08828461098a565b50602001919050565b6000610b1d82866109ce565b9150610b298285610970565b60028201915061038d82846109ce565b60208082528101610b4a818461090e565b9392505050565b602081016107938284610967565b602081016107938284610981565b60208082528101610b4a8184610996565b6020810161079382846109fd565b60208082528101610b4a8184610a06565b60e08101610bab8288610981565b610bb86020830187610981565b610bc56040830186610ad8565b610bd26080830185610981565b610bdf60a0830184610ad8565b9695505050505050565b60405181810167ffffffffffffffff81118282101715610c0857600080fd5b604052919050565b60200190565b60009081526020902090565b5190565b90815260200190565b600061079382610c64565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b73ffffffffffffffffffffffffffffffffffffffff1690565b600061079382610c2f565b60005b83811015610ca3578181015183820152602001610c8b565b83811115610ad25750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b610ce581610c3a565b8114610cf057600080fd5b50565b610ce58161078556fea365627a7a723158206b1fc97d73c3e26094fbde3ce0a93edc6731767f6e646007ec615622986f7c1d6c6578706572696d656e74616cf564736f6c63430005100040",
279
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a35760003560e01c8063913948ef11610076578063b3b14a411161005b578063b3b14a4114610115578063d5dbd51514610128578063fc17894e1461013d576100a3565b8063913948ef146101035780639bd954841461010b576100a3565b806305fc0824146100a857806315c14a4a146100c65780636812f616146100db578063839c1faa146100e3575b600080fd5b6100b0610145565b6040516100bd9190610b51565b60405180910390f35b6100ce610168565b6040516100bd9190610b7e565b6100b0610184565b6100f66100f1366004610876565b6101a8565b6040516100bd9190610b6d565b6100b0610396565b6101136103b8565b005b610113610123366004610834565b6104e4565b6101306104f5565b6040516100bd9190610b5f565b6100b0610519565b600054760100000000000000000000000000000000000000000000900460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005477010000000000000000000000000000000000000000000000900460ff1681565b60005460609074010000000000000000000000000000000000000000900460ff161561033d576000547501000000000000000000000000000000000000000000900460ff16156102b5576001805460018160011615610100020316600290049050600014156102625761025d60007f546573744c69717569646174696f6e43616c6c6261636b0000000000000000007f707572706f736566756c20726576657273696f6e00000000000000000000000061053a565b6102a0565b60016040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102979190610b8c565b60405180910390fd5b5060408051602081019091526000815261038d565b600054760100000000000000000000000000000000000000000000900460ff161561030f5760005b61c3508110156102f957600280546001908101909155016102dd565b505060408051602081019091526000815261038d565b60005477010000000000000000000000000000000000000000000000900460ff16156100a357620f42406000fd5b7f6b543b502d2b083d076839373de02ded08dba6ed461b380b9bcde72d11f8fec98686868686604051610374959493929190610b9d565b60405180910390a1506040805160208101909152600081525b95945050505050565b6000547501000000000000000000000000000000000000000000900460ff1681565b604080516001808252818301909252606091816020015b6103d76106b8565b8152602001906001900390816103cf57905050905033816000815181106103fa57fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060018160008151811061044757fe5b6020908102919091018101519115159101526000546040517f85b53fc800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906385b53fc8906104af908490600401610b39565b600060405180830381600087803b1580156104c957600080fd5b505af11580156104dd573d6000803e3d6000fd5b5050505050565b6104f0600183836106cf565b505050565b7f546573744c69717569646174696f6e43616c6c6261636b00000000000000000081565b60005474010000000000000000000000000000000000000000900460ff1681565b826104f057610548826105e2565b7f3a20000000000000000000000000000000000000000000000000000000000000610572836105e2565b60405160200161058493929190610b11565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261029791600401610b6d565b606080826040516020016105f69190610afc565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052905060205b801561069f5781517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091019082908290811061066257fe5b01602001517fff00000000000000000000000000000000000000000000000000000000000000161561069a57600101815290506106b3565b610629565b505060408051600081526020810190915290505b919050565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061072e578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561075b565b8280016001018555821561075b579182015b8281111561075b578235825591602001919060010190610740565b5061076792915061076b565b5090565b61078591905b808211156107675760008155600101610771565b90565b803561079381610cdc565b92915050565b60008083601f8401126107ab57600080fd5b50813567ffffffffffffffff8111156107c357600080fd5b6020830191508360018202830111156107db57600080fd5b9250929050565b6000604082840312156107f457600080fd5b6107fe6040610be9565b9050600061080c8484610788565b825250602061081d84848301610829565b60208301525092915050565b803561079381610cf3565b6000806020838503121561084757600080fd5b823567ffffffffffffffff81111561085e57600080fd5b61086a85828601610799565b92509250509250929050565b600080600080600060e0868803121561088e57600080fd5b600061089a8888610829565b95505060206108ab88828901610829565b94505060406108bc888289016107e2565b93505060806108cd88828901610829565b92505060a06108de888289016107e2565b9150509295509295909350565b60006108f78383610aae565b505060400190565b61090881610c2f565b82525050565b600061091982610c22565b6109238185610c26565b935061092e83610c10565b8060005b8381101561095c57815161094688826108eb565b975061095183610c10565b925050600101610932565b509495945050505050565b61090881610c3a565b61090861097c82610c3f565b610785565b61090881610785565b61090861097c82610785565b60006109a182610c22565b6109ab8185610c26565b93506109bb818560208601610c88565b6109c481610cb4565b9093019392505050565b60006109d982610c22565b6109e381856106b3565b93506109f3818560208601610c88565b9290920192915050565b61090881610c7d565b600081546001811660008114610a235760018114610a6757610aa6565b607f6002830416610a348187610c26565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168152955050602085019250610aa6565b60028204610a758187610c26565b9550610a8085610c16565b60005b82811015610a9f57815488820152600190910190602001610a83565b8701945050505b505092915050565b80516040830190610abf84826108ff565b506020820151610ad26020850182610967565b50505050565b80516040830190610ae98482610967565b506020820151610ad26020850182610981565b6000610b08828461098a565b50602001919050565b6000610b1d82866109ce565b9150610b298285610970565b60028201915061038d82846109ce565b60208082528101610b4a818461090e565b9392505050565b602081016107938284610967565b602081016107938284610981565b60208082528101610b4a8184610996565b6020810161079382846109fd565b60208082528101610b4a8184610a06565b60e08101610bab8288610981565b610bb86020830187610981565b610bc56040830186610ad8565b610bd26080830185610981565b610bdf60a0830184610ad8565b9695505050505050565b60405181810167ffffffffffffffff81118282101715610c0857600080fd5b604052919050565b60200190565b60009081526020902090565b5190565b90815260200190565b600061079382610c64565b151590565b7fffff0000000000000000000000000000000000000000000000000000000000001690565b73ffffffffffffffffffffffffffffffffffffffff1690565b600061079382610c2f565b60005b83811015610ca3578181015183820152602001610c8b565b83811115610ad25750506000910152565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b610ce581610c3a565b8114610cf057600080fd5b50565b610ce58161078556fea365627a7a723158206b1fc97d73c3e26094fbde3ce0a93edc6731767f6e646007ec615622986f7c1d6c6578706572696d656e74616cf564736f6c63430005100040",
280
280
  "sourceMap": "851:2591:100:-;;;1374:1;1353:22;;1382:440;8:9:-1;5:2;;;30:1;27;20:12;5:2;1382:440:100;;;;;;;;;;;;;;;;;;;;;1293:15:6;:49;;-1:-1:-1;;;;;;1293:49:6;-1:-1:-1;;;;;1293:49:6;;;;;;;;-1:-1:-1;;;;1617:28:100;-1:-1:-1;;;1617:28:100;;;;;;;;;;;-1:-1:-1;;;;1655:52:100;-1:-1:-1;;;1655:52:100;;;;;;;;;;;-1:-1:-1;;;;1717:51:100;-1:-1:-1;;;1717:51:100;;;;;;;;-1:-1:-1;;;;1778:37:100;-1:-1:-1;;;1778:37:100;;;;;;;;;;851:2591;;5:134:-1;83:13;;101:33;83:13;101:33;;;68:71;;;;;146:128;221:13;;239:30;221:13;239:30;;281:785;;;;;;452:3;440:9;431:7;427:23;423:33;420:2;;;469:1;466;459:12;420:2;504:1;521:64;577:7;557:9;521:64;;;511:74;;483:108;622:2;640:61;693:7;684:6;673:9;669:22;640:61;;;630:71;;601:106;738:2;756:61;809:7;800:6;789:9;785:22;756:61;;;746:71;;717:106;854:2;872:61;925:7;916:6;905:9;901:22;872:61;;;862:71;;833:106;970:3;989:61;1042:7;1033:6;1022:9;1018:22;989:61;;;979:71;;949:107;414:652;;;;;;;;;1073:91;;1135:24;1153:5;1135:24;;1171:85;1237:13;1230:21;;1213:43;1263:121;-1:-1;;;;;1325:54;;1308:76;1391:117;1460:24;1478:5;1460:24;;;1453:5;1450:35;1440:2;;1499:1;1496;1489:12;1440:2;1434:74;;1515:111;1581:21;1596:5;1581:21;;1555:71;851:2591:100;;;;;;",
281
281
  "deployedSourceMap": "851:2591:100:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;851:2591:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1236:38;;;:::i;:::-;;;;;;;;;;;;;;;;1122::6;;;:::i;:::-;;;;;;;;1280:30:100;;;:::i;2202:1237::-;;;;;;;;;:::i;:::-;;;;;;;;1192:38;;;:::i;1828:249::-;;;:::i;:::-;;2083:113;;;;;;;;;:::i;913:56::-;;;:::i;:::-;;;;;;;;1161:25;;;:::i;1236:38::-;;;;;;;;;:::o;1122::6:-;;;;;;:::o;1280:30:100:-;;;;;;;;;:::o;2202:1237::-;2433:13;;2405:12;;2433:13;;;;;2429:1004;;;2466:26;;;;;;;2462:811;;;2522:14;2516:28;;;;;;;;;;;;;;;;2548:1;2516:33;2512:292;;;2573:143;2611:5;2642:4;2573:143;:12;:143::i;:::-;2512:292;;;2770:14;2763:22;;;;;;;;;;;;;;;;;;;;2512:292;-1:-1:-1;2821:9:100;;;;;;;;;-1:-1:-1;2821:9:100;;;;2462:811;2855:26;;;;;;;2851:422;;;2906:6;2901:84;2922:5;2918:1;:9;2901:84;;;2956:5;:10;;2965:1;2956:10;;;;;;2929:3;2901:84;;;-1:-1:-1;;3002:9:100;;;;;;;;;-1:-1:-1;3002:9:100;;;;2851:422;3036:18;;;;;;;3032:241;;;3160:7;3157:1;3150:18;2429:1004;3308:91;3329:13;3344:12;3358;3372;3386;3308:91;;;;;;;;;;;;;;;;;;;-1:-1:-1;3413:9:100;;;;;;;;;-1:-1:-1;3413:9:100;;2429:1004;2202:1237;;;;;;;:::o;1192:38::-;;;;;;;;;:::o;1828:249::-;1914:26;;;1938:1;1914:26;;;;;;;;;1875:36;;1914:26;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1875:65;;1974:10;1950:9;1960:1;1950:12;;;;;;;;;;;;;;:21;;:34;;;;;;;;;;;2017:4;1994:9;2004:1;1994:12;;;;;;;;;;;;;;;;;;;:27;;;:20;;:27;-1:-1:-1;2031:15:100;:39;;;;;:15;;;;;:28;;:39;;2060:9;;2031:39;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2031:39:100;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2031:39:100;;;;1828:249;:::o;2083:113::-;2159:30;:14;2176:13;;2159:30;:::i;:::-;;2083:113;;:::o;913:56::-;;;:::o;1161:25::-;;;;;;;;;:::o;1294:426:77:-;1428:4;1423:291;;1542:24;1561:4;1542:18;:24::i;:::-;1592:5;1623:26;1642:6;1623:18;:26::i;:::-;1500:171;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;1500:171:77;;;;1448:255;;;;;;;;;6359:966;6462:12;6537:19;6576:5;6559:23;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;6559:23:77;;;;-1:-1:-1;49:4;6688:571:77;6709:5;;6688:571;;6960:9;;6862:3;;;;;6960:6;;6862:3;;6960:9;;;;;;;;;;;;:14;6956:293;;7015:1;7011:5;7141:22;;7148:6;-1:-1:-1;7221:13:77;;6956:293;6688:571;;;-1:-1:-1;;7306:12:77;;;7316:1;7306:12;;;;;;;;;-1:-1:-1;6359:966:77;;;;:::o;851:2591:100:-;;;;;;;;;;-1:-1:-1;851:2591:100;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;851:2591:100;;;-1:-1:-1;851:2591:100;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;5:124:-1:-;69:20;;94:30;69:20;94:30;;;54:75;;;;;151:337;;;266:3;259:4;251:6;247:17;243:27;233:2;;284:1;281;274:12;233:2;-1:-1;304:20;;344:18;333:30;;330:2;;;376:1;373;366:12;330:2;410:4;402:6;398:17;386:29;;461:3;453:4;445:6;441:17;431:8;427:32;424:41;421:2;;;478:1;475;468:12;421:2;226:262;;;;;;519:462;;630:4;618:9;613:3;609:19;605:30;602:2;;;648:1;645;638:12;602:2;666:20;681:4;666:20;;;657:29;-1:-1;736:1;768:46;810:3;790:9;768:46;;;743:72;;-1:-1;877:2;910:49;955:3;931:22;;;910:49;;;903:4;896:5;892:16;885:75;836:135;596:385;;;;;988:130;1055:20;;1080:33;1055:20;1080:33;;1125:367;;;1249:2;1237:9;1228:7;1224:23;1220:32;1217:2;;;1265:1;1262;1255:12;1217:2;1300:31;;1351:18;1340:30;;1337:2;;;1383:1;1380;1373:12;1337:2;1411:65;1468:7;1459:6;1448:9;1444:22;1411:65;;;1401:75;;;;1279:203;1211:281;;;;;;1499:832;;;;;;1715:3;1703:9;1694:7;1690:23;1686:33;1683:2;;;1732:1;1729;1722:12;1683:2;1767:1;1784:53;1829:7;1809:9;1784:53;;;1774:63;;1746:97;1874:2;1892:53;1937:7;1928:6;1917:9;1913:22;1892:53;;;1882:63;;1853:98;1982:2;2000:75;2067:7;2058:6;2047:9;2043:22;2000:75;;;1990:85;;1961:120;2112:3;2131:53;2176:7;2167:6;2156:9;2152:22;2131:53;;;2121:63;;2091:99;2221:3;2240:75;2307:7;2298:6;2287:9;2283:22;2240:75;;;2230:85;;2200:121;1677:654;;;;;;;;;2339:281;;2478:102;2576:3;2568:6;2478:102;;;-1:-1;;2609:4;2600:14;;2471:149;2628:103;2701:24;2719:5;2701:24;;;2696:3;2689:37;2683:48;;;2803:898;;3000:80;3074:5;3000:80;;;3093:112;3198:6;3193:3;3093:112;;;3086:119;;3226:82;3302:5;3226:82;;;3328:7;3356:1;3341:338;3366:6;3363:1;3360:13;3341:338;;;3433:6;3427:13;3454:115;3565:3;3550:13;3454:115;;;3447:122;;3586:86;3665:6;3586:86;;;3576:96;-1:-1;;3388:1;3381:9;3341:338;;;-1:-1;3692:3;;2979:722;-1:-1;;;;;2979:722;3709:94;3776:21;3791:5;3776:21;;3921:148;4020:43;4039:23;4056:5;4039:23;;;4020:43;;4076:113;4159:24;4177:5;4159:24;;4196:152;4297:45;4317:24;4335:5;4317:24;;4355:343;;4465:38;4497:5;4465:38;;;4515:70;4578:6;4573:3;4515:70;;;4508:77;;4590:52;4635:6;4630:3;4623:4;4616:5;4612:16;4590:52;;;4663:29;4685:6;4663:29;;;4654:39;;;;4445:253;-1:-1;;;4445:253;4705:356;;4833:38;4865:5;4833:38;;;4883:88;4964:6;4959:3;4883:88;;;4876:95;;4976:52;5021:6;5016:3;5009:4;5002:5;4998:16;4976:52;;;5040:16;;;;;4813:248;-1:-1;;4813:248;5068:176;5176:62;5232:5;5176:62;;5630:823;;5749:5;5743:12;5783:1;5772:9;5768:17;5796:1;5791:248;;;;6050:1;6045:402;;;;5761:686;;5791:248;5869:4;5865:1;5854:9;5850:17;5846:28;5888:71;5952:6;5947:3;5888:71;;;5993:9;5978:25;;5966:38;;5881:78;-1:-1;;6027:4;6018:14;;;-1:-1;5791:248;;6045:402;6114:1;6103:9;6099:17;6130:71;6194:6;6189:3;6130:71;;;6123:78;;6223:38;6255:5;6223:38;;;6277:1;6285:130;6299:6;6296:1;6293:13;6285:130;;;6358:14;;6345:11;;;6338:35;6405:1;6392:15;;;;6321:4;6314:12;6285:130;;;6429:11;;;-1:-1;;;5761:686;;5719:734;;;;;;6520:473;6729:23;;6659:4;6650:14;;;6758:63;6654:3;6729:23;6758:63;;;6679:148;6903:4;6896:5;6892:16;6886:23;6915:57;6966:4;6961:3;6957:14;6943:12;6915:57;;;6837:141;6632:361;;;;7043:465;7246:23;;7180:4;7171:14;;;7275:57;7175:3;7246:23;7275:57;;;7200:138;7412:4;7405:5;7401:16;7395:23;7424:63;7481:4;7476:3;7472:14;7458:12;7424:63;;7745:244;;7864:75;7935:3;7926:6;7864:75;;;-1:-1;7961:2;7952:12;;7852:137;-1:-1;7852:137;7996:553;;8212:93;8301:3;8292:6;8212:93;;;8205:100;;8316:73;8385:3;8376:6;8316:73;;;8411:1;8406:3;8402:11;8395:18;;8431:93;8520:3;8511:6;8431:93;;8556:465;8776:2;8790:47;;;8761:18;;8851:160;8761:18;8997:6;8851:160;;;8843:168;8747:274;-1:-1;;;8747:274;9028:201;9140:2;9125:18;;9154:65;9129:9;9192:6;9154:65;;9236:213;9354:2;9339:18;;9368:71;9343:9;9412:6;9368:71;;9456:297;9592:2;9606:47;;;9577:18;;9667:76;9577:18;9729:6;9667:76;;9760:263;9903:2;9888:18;;9917:96;9892:9;9986:6;9917:96;;10338:295;10473:2;10487:47;;;10458:18;;10548:75;10458:18;10609:6;10548:75;;10640:836;10958:3;10943:19;;10973:71;10947:9;11017:6;10973:71;;;11055:72;11123:2;11112:9;11108:18;11099:6;11055:72;;;11138:116;11250:2;11239:9;11235:18;11226:6;11138:116;;;11265:73;11333:3;11322:9;11318:19;11309:6;11265:73;;;11349:117;11461:3;11450:9;11446:19;11437:6;11349:117;;;10929:547;;;;;;;;;11483:256;11545:2;11539:9;11571:17;;;11646:18;11631:34;;11667:22;;;11628:62;11625:2;;;11703:1;11700;11693:12;11625:2;11719;11712:22;11523:216;;-1:-1;11523:216;11746:177;11896:4;11887:14;;11844:79;11930:158;;12025:14;;;12067:4;12054:18;;;11984:104;12095:163;12224:12;;12195:63;12664:204;12808:19;;;12857:4;12848:14;;12801:67;13372:91;;13434:24;13452:5;13434:24;;13470:85;13536:13;13529:21;;13512:43;13562:144;13634:66;13623:78;;13606:100;13792:121;13865:42;13854:54;;13837:76;13999:171;;14103:62;14159:5;14103:62;;14318:268;14383:1;14390:101;14404:6;14401:1;14398:13;14390:101;;;14471:11;;;14465:18;14452:11;;;14445:39;14426:2;14419:10;14390:101;;;14506:6;14503:1;14500:13;14497:2;;;-1:-1;;14571:1;14553:16;;14546:27;14367:219;14755:97;14843:2;14823:14;14839:7;14819:28;;14803:49;14860:111;14926:21;14941:5;14926:21;;;14919:5;14916:32;14906:2;;14962:1;14959;14952:12;14906:2;14900:71;;14978:117;15047:24;15065:5;15047:24;",
282
282
  "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 { OnlyDolomiteMargin } from \"../external/helpers/OnlyDolomiteMargin.sol\";\nimport { Require } from \"../protocol/lib/Require.sol\";\nimport { Types } from \"../protocol/lib/Types.sol\";\n\n\ncontract TestLiquidationCallback is OnlyDolomiteMargin {\n\n bytes32 public constant FILE = \"TestLiquidationCallback\";\n\n event LogOnLiquidateInputs(\n uint accountNumber,\n uint heldMarketId,\n Types.Wei heldDeltaWei,\n uint owedMarketId,\n Types.Wei owedDeltaWei\n );\n\n bool public SHOULD_REVERT;\n bool public SHOULD_REVERT_WITH_MESSAGE;\n bool public SHOULD_CONSUME_TONS_OF_GAS;\n bool public SHOULD_RETURN_BOMB;\n\n string private REVERT_MESSAGE;\n\n uint private value = 0;\n\n constructor(\n address dolomiteMargin,\n bool shouldRevert,\n bool shouldRevertWithMessage,\n bool shouldConsumeTonsOfGas,\n bool shouldReturnBomb\n ) public OnlyDolomiteMargin(dolomiteMargin) {\n SHOULD_REVERT = shouldRevert;\n SHOULD_REVERT_WITH_MESSAGE = shouldRevertWithMessage;\n SHOULD_CONSUME_TONS_OF_GAS = shouldConsumeTonsOfGas;\n SHOULD_RETURN_BOMB = shouldReturnBomb;\n }\n\n function setLocalOperator() external {\n Types.OperatorArg[] memory operators = new Types.OperatorArg[](1);\n operators[0].operator = msg.sender;\n operators[0].trusted = true;\n DOLOMITE_MARGIN.setOperators(operators);\n }\n\n function setRevertMessage(string calldata revertMessage) external {\n REVERT_MESSAGE = revertMessage;\n }\n\n function onLiquidate(\n uint accountNumber,\n uint heldMarketId,\n Types.Wei memory heldDeltaWei,\n uint owedMarketId,\n Types.Wei memory owedDeltaWei\n ) public returns (bytes memory) {\n if (SHOULD_REVERT) {\n if (SHOULD_REVERT_WITH_MESSAGE) {\n if (bytes(REVERT_MESSAGE).length == 0) {\n Require.that(\n false,\n FILE,\n \"purposeful reversion\"\n );\n } else {\n revert(REVERT_MESSAGE);\n }\n return \"\";\n } else if (SHOULD_CONSUME_TONS_OF_GAS) {\n for (uint i = 0; i < 50000; i++) {\n value += 1;\n }\n return \"\";\n } else if (SHOULD_RETURN_BOMB) {\n // send back 1,000,000 bytes\n assembly {\n revert(0, 1000000)\n }\n revert();\n } else {\n revert();\n }\n } else {\n emit LogOnLiquidateInputs(accountNumber, heldMarketId, heldDeltaWei, owedMarketId, owedDeltaWei);\n return \"\";\n }\n }\n\n}\n",
283
- "sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLiquidationCallback.sol",
283
+ "sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLiquidationCallback.sol",
284
284
  "ast": {
285
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLiquidationCallback.sol",
285
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLiquidationCallback.sol",
286
286
  "exportedSymbols": {
287
287
  "TestLiquidationCallback": [
288
288
  36797
@@ -312,7 +312,7 @@
312
312
  "src": "627:33:100"
313
313
  },
314
314
  {
315
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/helpers/OnlyDolomiteMargin.sol",
315
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/helpers/OnlyDolomiteMargin.sol",
316
316
  "file": "../external/helpers/OnlyDolomiteMargin.sol",
317
317
  "id": 36595,
318
318
  "nodeType": "ImportDirective",
@@ -328,7 +328,7 @@
328
328
  "unitAlias": ""
329
329
  },
330
330
  {
331
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol",
331
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol",
332
332
  "file": "../protocol/lib/Require.sol",
333
333
  "id": 36597,
334
334
  "nodeType": "ImportDirective",
@@ -344,7 +344,7 @@
344
344
  "unitAlias": ""
345
345
  },
346
346
  {
347
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Types.sol",
347
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol",
348
348
  "file": "../protocol/lib/Types.sol",
349
349
  "id": 36599,
350
350
  "nodeType": "ImportDirective",
@@ -2779,7 +2779,7 @@
2779
2779
  "src": "603:2840:100"
2780
2780
  },
2781
2781
  "legacyAST": {
2782
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLiquidationCallback.sol",
2782
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLiquidationCallback.sol",
2783
2783
  "exportedSymbols": {
2784
2784
  "TestLiquidationCallback": [
2785
2785
  36797
@@ -2809,7 +2809,7 @@
2809
2809
  "src": "627:33:100"
2810
2810
  },
2811
2811
  {
2812
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/helpers/OnlyDolomiteMargin.sol",
2812
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/helpers/OnlyDolomiteMargin.sol",
2813
2813
  "file": "../external/helpers/OnlyDolomiteMargin.sol",
2814
2814
  "id": 36595,
2815
2815
  "nodeType": "ImportDirective",
@@ -2825,7 +2825,7 @@
2825
2825
  "unitAlias": ""
2826
2826
  },
2827
2827
  {
2828
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Require.sol",
2828
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Require.sol",
2829
2829
  "file": "../protocol/lib/Require.sol",
2830
2830
  "id": 36597,
2831
2831
  "nodeType": "ImportDirective",
@@ -2841,7 +2841,7 @@
2841
2841
  "unitAlias": ""
2842
2842
  },
2843
2843
  {
2844
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/lib/Types.sol",
2844
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/protocol/lib/Types.sol",
2845
2845
  "file": "../protocol/lib/Types.sol",
2846
2846
  "id": 36599,
2847
2847
  "nodeType": "ImportDirective",
@@ -5281,7 +5281,7 @@
5281
5281
  },
5282
5282
  "networks": {},
5283
5283
  "schemaVersion": "3.0.23",
5284
- "updatedAt": "2022-02-04T01:55:01.270Z",
5284
+ "updatedAt": "2022-02-07T07:18:45.425Z",
5285
5285
  "devdoc": {
5286
5286
  "methods": {}
5287
5287
  },
@@ -17,15 +17,15 @@
17
17
  "type": "function"
18
18
  }
19
19
  ],
20
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\",\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLrcEthChainlinkAggregator.sol\":\"TestLrcEthChainlinkAggregator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IChainlinkAggregator.sol\":{\"keccak256\":\"0xc8c16d8fb7fe57637d33bac84af3ea4c087896612ee629357735c6afe4802a75\",\"urls\":[\"bzz-raw://560ddc4d72da39030111a3ae74dc5f38f0a83eeb30a07bc49c5b6ba3ba07f981\",\"dweb:/ipfs/QmRdYwQRcWHnHmNi6Xuy139AP1SZit5u2NdvmauYjC48V6\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLrcEthChainlinkAggregator.sol\":{\"keccak256\":\"0x1c3b1e45bbe26c01facfaa61de62caa0987b7478a7aacbaea7661b45dce93251\",\"urls\":[\"bzz-raw://00ad614d901c8cc68515b0d1af20efb54d09f1cfd8061000235436897a9c1935\",\"dweb:/ipfs/QmRiAhuBvptowdbTPWJKjNRkDCYubuPTZcHQLqR5NPhjJy\"]}},\"version\":1}",
21
- "bytecode": "0x6080604052348015600f57600080fd5b5060848061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b65a9854dbd5c009056fea265627a7a72315820979fdd3e0999d9620f3d44513465fcb923a4a7417cb9afefa48c5e21f68f1ebe64736f6c63430005100032",
22
- "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b65a9854dbd5c009056fea265627a7a72315820979fdd3e0999d9620f3d44513465fcb923a4a7417cb9afefa48c5e21f68f1ebe64736f6c63430005100032",
20
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\",\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLrcEthChainlinkAggregator.sol\":\"TestLrcEthChainlinkAggregator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol\":{\"keccak256\":\"0xc8c16d8fb7fe57637d33bac84af3ea4c087896612ee629357735c6afe4802a75\",\"urls\":[\"bzz-raw://560ddc4d72da39030111a3ae74dc5f38f0a83eeb30a07bc49c5b6ba3ba07f981\",\"dweb:/ipfs/QmRdYwQRcWHnHmNi6Xuy139AP1SZit5u2NdvmauYjC48V6\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLrcEthChainlinkAggregator.sol\":{\"keccak256\":\"0x1c3b1e45bbe26c01facfaa61de62caa0987b7478a7aacbaea7661b45dce93251\",\"urls\":[\"bzz-raw://00ad614d901c8cc68515b0d1af20efb54d09f1cfd8061000235436897a9c1935\",\"dweb:/ipfs/QmRiAhuBvptowdbTPWJKjNRkDCYubuPTZcHQLqR5NPhjJy\"]}},\"version\":1}",
21
+ "bytecode": "0x6080604052348015600f57600080fd5b5060848061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b65a9854dbd5c009056fea265627a7a7231582032eb8f8669c5d5551dfec64cb813121106e5c5940618eea73cf569a85d2e866b64736f6c63430005100032",
22
+ "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b65a9854dbd5c009056fea265627a7a7231582032eb8f8669c5d5551dfec64cb813121106e5c5940618eea73cf569a85d2e866b64736f6c63430005100032",
23
23
  "sourceMap": "792:189:101:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;792:189:101;;;;;;;",
24
24
  "deployedSourceMap": "792:189:101:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;792:189:101;;;;;;;;;;;;;;;;;;;862:116;;;:::i;:::-;;;;;;;;;;;;;;;;;956:15;862:116;:::o",
25
25
  "source": "/*\n\n Copyright 2020 Dolomite.\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;\n\nimport \"../external/interfaces/IChainlinkAggregator.sol\";\n\n/**\n * @dev Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\n */\ncontract TestLrcEthChainlinkAggregator is IChainlinkAggregator {\n\n function latestAnswer() public view returns (int256) {\n // Ξ0.00018639\n return 186390000000000;\n }\n\n}",
26
- "sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLrcEthChainlinkAggregator.sol",
26
+ "sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLrcEthChainlinkAggregator.sol",
27
27
  "ast": {
28
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLrcEthChainlinkAggregator.sol",
28
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLrcEthChainlinkAggregator.sol",
29
29
  "exportedSymbols": {
30
30
  "TestLrcEthChainlinkAggregator": [
31
31
  36811
@@ -46,7 +46,7 @@
46
46
  "src": "595:23:101"
47
47
  },
48
48
  {
49
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IChainlinkAggregator.sol",
49
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol",
50
50
  "file": "../external/interfaces/IChainlinkAggregator.sol",
51
51
  "id": 36800,
52
52
  "nodeType": "ImportDirective",
@@ -183,7 +183,7 @@
183
183
  "src": "595:386:101"
184
184
  },
185
185
  "legacyAST": {
186
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestLrcEthChainlinkAggregator.sol",
186
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestLrcEthChainlinkAggregator.sol",
187
187
  "exportedSymbols": {
188
188
  "TestLrcEthChainlinkAggregator": [
189
189
  36811
@@ -204,7 +204,7 @@
204
204
  "src": "595:23:101"
205
205
  },
206
206
  {
207
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IChainlinkAggregator.sol",
207
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol",
208
208
  "file": "../external/interfaces/IChainlinkAggregator.sol",
209
209
  "id": 36800,
210
210
  "nodeType": "ImportDirective",
@@ -348,12 +348,12 @@
348
348
  "1001": {
349
349
  "events": {},
350
350
  "links": {},
351
- "address": "0x970e8f18ebfEa0B08810f33a5A40438b9530FBCF",
352
- "transactionHash": "0x9df703f9aeb6c698a458482d2680e699596511c956da9b8e7c831914232ae2c8"
351
+ "address": "0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A",
352
+ "transactionHash": "0xf19ce3acdae319c7af176703fd0d24a0d66945869c2c81e06784af3304d8ddb2"
353
353
  }
354
354
  },
355
355
  "schemaVersion": "3.0.23",
356
- "updatedAt": "2022-02-04T01:55:01.273Z",
356
+ "updatedAt": "2022-02-07T07:18:45.428Z",
357
357
  "devdoc": {
358
358
  "details": "Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.",
359
359
  "methods": {}
@@ -130,15 +130,15 @@
130
130
  "type": "function"
131
131
  }
132
132
  ],
133
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":true,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"msgSender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg1\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg2\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"msgValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"msgData\",\"type\":\"bytes\"}],\"name\":\"LogNote\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"peek\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"price\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"read\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_valid\",\"type\":\"bool\"}],\"name\":\"setValues\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"valid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMakerOracle.sol\":\"TestMakerOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMakerOracle.sol\":{\"keccak256\":\"0x1ad01e466dcbac37a636c7d0d2f57ea1c76479e1b999f8f1d372d44943adc490\",\"urls\":[\"bzz-raw://cbf1e8bee5070452296f08068e2d06ab7b6b503a8df9e574d833f600ce8eec18\",\"dweb:/ipfs/QmTvmEVU3Bk1PvWALu2Z4DtmX8Esb3SrD5NKvpEjmC52S2\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMakerOracle.sol\":{\"keccak256\":\"0x8b6ea31e81f61a245ae34391029356f682524764de6c1d1b48395e65ad58cdc0\",\"urls\":[\"bzz-raw://53792fb85d1d0fa3a23555f6da0a4d73b73be5a15beec497e875fbe79b40117d\",\"dweb:/ipfs/QmNdv2VYD9AkTonXvdUJc6dADsuyXxecCB5ihzuohbuRTJ\"]}},\"version\":1}",
134
- "bytecode": "0x608060405234801561001057600080fd5b50610255806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063a035b1fe11610050578063a035b1fe146100a0578063c1991219146100a8578063e46ce1c0146100bd57610067565b806357de26a41461006c57806359e02dd71461008a575b600080fd5b6100746100d2565b60405161008191906101ba565b60405180910390f35b6100926100eb565b6040516100819291906101c8565b6100746100f8565b6100b06100fe565b60405161008191906101ac565b6100d06100cb36600461015a565b610107565b005b60015460009060ff166100e457600080fd5b5060005490565b60005460015460ff169091565b60005481565b60015460ff1681565b600091909155600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b8035610149816101f2565b92915050565b803561014981610209565b6000806040838503121561016d57600080fd5b6000610179858561014f565b925050602061018a8582860161013e565b9150509250929050565b61019d816101ea565b82525050565b61019d816101ef565b602081016101498284610194565b6020810161014982846101a3565b604081016101d682856101a3565b6101e36020830184610194565b9392505050565b151590565b90565b6101fb816101ea565b811461020657600080fd5b50565b6101fb816101ef56fea365627a7a7231582042aee5ec8694eb6f91108fc863d894fc4edcc3512ee3539a5cf92c9b4dec96796c6578706572696d656e74616cf564736f6c63430005100040",
135
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063a035b1fe11610050578063a035b1fe146100a0578063c1991219146100a8578063e46ce1c0146100bd57610067565b806357de26a41461006c57806359e02dd71461008a575b600080fd5b6100746100d2565b60405161008191906101ba565b60405180910390f35b6100926100eb565b6040516100819291906101c8565b6100746100f8565b6100b06100fe565b60405161008191906101ac565b6100d06100cb36600461015a565b610107565b005b60015460009060ff166100e457600080fd5b5060005490565b60005460015460ff169091565b60005481565b60015460ff1681565b600091909155600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b8035610149816101f2565b92915050565b803561014981610209565b6000806040838503121561016d57600080fd5b6000610179858561014f565b925050602061018a8582860161013e565b9150509250929050565b61019d816101ea565b82525050565b61019d816101ef565b602081016101498284610194565b6020810161014982846101a3565b604081016101d682856101a3565b6101e36020830184610194565b9392505050565b151590565b90565b6101fb816101ea565b811461020657600080fd5b50565b6101fb816101ef56fea365627a7a7231582042aee5ec8694eb6f91108fc863d894fc4edcc3512ee3539a5cf92c9b4dec96796c6578706572696d656e74616cf564736f6c63430005100040",
133
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":true,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"msgSender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg1\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"arg2\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"msgValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"msgData\",\"type\":\"bytes\"}],\"name\":\"LogNote\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"peek\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"price\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"read\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_valid\",\"type\":\"bool\"}],\"name\":\"setValues\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"valid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMakerOracle.sol\":\"TestMakerOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol\":{\"keccak256\":\"0x1ad01e466dcbac37a636c7d0d2f57ea1c76479e1b999f8f1d372d44943adc490\",\"urls\":[\"bzz-raw://cbf1e8bee5070452296f08068e2d06ab7b6b503a8df9e574d833f600ce8eec18\",\"dweb:/ipfs/QmTvmEVU3Bk1PvWALu2Z4DtmX8Esb3SrD5NKvpEjmC52S2\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMakerOracle.sol\":{\"keccak256\":\"0x8b6ea31e81f61a245ae34391029356f682524764de6c1d1b48395e65ad58cdc0\",\"urls\":[\"bzz-raw://53792fb85d1d0fa3a23555f6da0a4d73b73be5a15beec497e875fbe79b40117d\",\"dweb:/ipfs/QmNdv2VYD9AkTonXvdUJc6dADsuyXxecCB5ihzuohbuRTJ\"]}},\"version\":1}",
134
+ "bytecode": "0x608060405234801561001057600080fd5b50610255806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063a035b1fe11610050578063a035b1fe146100a0578063c1991219146100a8578063e46ce1c0146100bd57610067565b806357de26a41461006c57806359e02dd71461008a575b600080fd5b6100746100d2565b60405161008191906101ba565b60405180910390f35b6100926100eb565b6040516100819291906101c8565b6100746100f8565b6100b06100fe565b60405161008191906101ac565b6100d06100cb36600461015a565b610107565b005b60015460009060ff166100e457600080fd5b5060005490565b60005460015460ff169091565b60005481565b60015460ff1681565b600091909155600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b8035610149816101f2565b92915050565b803561014981610209565b6000806040838503121561016d57600080fd5b6000610179858561014f565b925050602061018a8582860161013e565b9150509250929050565b61019d816101ea565b82525050565b61019d816101ef565b602081016101498284610194565b6020810161014982846101a3565b604081016101d682856101a3565b6101e36020830184610194565b9392505050565b151590565b90565b6101fb816101ea565b811461020657600080fd5b50565b6101fb816101ef56fea365627a7a72315820f24b0544ba1768fc22e89cd1247c94507b091efb872831909c65e80f5c234e1a6c6578706572696d656e74616cf564736f6c63430005100040",
135
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063a035b1fe11610050578063a035b1fe146100a0578063c1991219146100a8578063e46ce1c0146100bd57610067565b806357de26a41461006c57806359e02dd71461008a575b600080fd5b6100746100d2565b60405161008191906101ba565b60405180910390f35b6100926100eb565b6040516100819291906101c8565b6100746100f8565b6100b06100fe565b60405161008191906101ac565b6100d06100cb36600461015a565b610107565b005b60015460009060ff166100e457600080fd5b5060005490565b60005460015460ff169091565b60005481565b60015460ff1681565b600091909155600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b8035610149816101f2565b92915050565b803561014981610209565b6000806040838503121561016d57600080fd5b6000610179858561014f565b925050602061018a8582860161013e565b9150509250929050565b61019d816101ea565b82525050565b61019d816101ef565b602081016101498284610194565b6020810161014982846101a3565b604081016101d682856101a3565b6101e36020830184610194565b9392505050565b151590565b90565b6101fb816101ea565b811461020657600080fd5b50565b6101fb816101ef56fea365627a7a72315820f24b0544ba1768fc22e89cd1247c94507b091efb872831909c65e80f5c234e1a6c6578706572696d656e74616cf564736f6c63430005100040",
136
136
  "sourceMap": "736:528:102:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;736:528:102;;;;;;;",
137
137
  "deployedSourceMap": "736:528:102:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;736:528:102;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1124:138;;;:::i;:::-;;;;;;;;;;;;;;;;989:129;;;:::i;:::-;;;;;;;;;787:20;;;:::i;813:17::-;;;:::i;:::-;;;;;;;;837:146;;;;;;;;;:::i;:::-;;1124:138;1218:5;;1187:7;;1218:5;;1210:14;;;;;;-1:-1:-1;1249:5:102;;1124:138;:::o;989:129::-;1052:7;1097:5;1105;;;;989:129;;:::o;787:20::-;;;;:::o;813:17::-;;;;;;:::o;837:146::-;938:5;:14;;;;962:5;:14;;;;;;;;;;;;;837:146::o;5:124:-1:-;69:20;;94:30;69:20;94:30;;;54:75;;;;;136:130;203:20;;228:33;203:20;228:33;;273:360;;;391:2;379:9;370:7;366:23;362:32;359:2;;;407:1;404;397:12;359:2;442:1;459:53;504:7;484:9;459:53;;;449:63;;421:97;549:2;567:50;609:7;600:6;589:9;585:22;567:50;;;557:60;;528:95;353:280;;;;;;640:104;717:21;732:5;717:21;;;712:3;705:34;699:45;;;751:113;834:24;852:5;834:24;;991:201;1103:2;1088:18;;1117:65;1092:9;1155:6;1117:65;;1199:213;1317:2;1302:18;;1331:71;1306:9;1375:6;1331:71;;1419:312;1559:2;1544:18;;1573:71;1548:9;1617:6;1573:71;;;1655:66;1717:2;1706:9;1702:18;1693:6;1655:66;;;1530:201;;;;;;1958:85;2024:13;2017:21;;2000:43;2050:72;2112:5;2095:27;2208:111;2274:21;2289:5;2274:21;;;2267:5;2264:32;2254:2;;2310:1;2307;2300:12;2254:2;2248:71;;2326:117;2395:24;2413:5;2395:24;",
138
138
  "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 { IMakerOracle } from \"../external/interfaces/IMakerOracle.sol\";\n\n\ncontract TestMakerOracle is\n IMakerOracle\n{\n uint256 public price;\n bool public valid;\n\n function setValues(\n uint256 _price,\n bool _valid\n )\n external\n {\n price = _price;\n valid = _valid;\n }\n\n function peek()\n external\n view\n returns (bytes32, bool)\n {\n return (bytes32(price), valid);\n }\n\n function read()\n external\n view\n returns (bytes32)\n {\n require(valid);\n return bytes32(price);\n }\n}\n",
139
- "sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMakerOracle.sol",
139
+ "sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMakerOracle.sol",
140
140
  "ast": {
141
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMakerOracle.sol",
141
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMakerOracle.sol",
142
142
  "exportedSymbols": {
143
143
  "TestMakerOracle": [
144
144
  36867
@@ -168,7 +168,7 @@
168
168
  "src": "627:33:102"
169
169
  },
170
170
  {
171
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMakerOracle.sol",
171
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol",
172
172
  "file": "../external/interfaces/IMakerOracle.sol",
173
173
  "id": 36816,
174
174
  "nodeType": "ImportDirective",
@@ -803,7 +803,7 @@
803
803
  "src": "603:662:102"
804
804
  },
805
805
  "legacyAST": {
806
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMakerOracle.sol",
806
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMakerOracle.sol",
807
807
  "exportedSymbols": {
808
808
  "TestMakerOracle": [
809
809
  36867
@@ -833,7 +833,7 @@
833
833
  "src": "627:33:102"
834
834
  },
835
835
  {
836
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMakerOracle.sol",
836
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IMakerOracle.sol",
837
837
  "file": "../external/interfaces/IMakerOracle.sol",
838
838
  "id": 36816,
839
839
  "nodeType": "ImportDirective",
@@ -1520,11 +1520,11 @@
1520
1520
  },
1521
1521
  "links": {},
1522
1522
  "address": "0x0E696947A06550DEf604e82C26fd9E493e576337",
1523
- "transactionHash": "0x7ddb445544c840af6778b1dfe1e160b234056474ed7517affc655d1c54451860"
1523
+ "transactionHash": "0xa57b98f1be0a6938f873e527ee8e114a652d2b5ee18900132e70df2f85d93f09"
1524
1524
  }
1525
1525
  },
1526
1526
  "schemaVersion": "3.0.23",
1527
- "updatedAt": "2022-02-04T01:55:01.273Z",
1527
+ "updatedAt": "2022-02-07T07:18:45.429Z",
1528
1528
  "devdoc": {
1529
1529
  "methods": {}
1530
1530
  },
@@ -17,15 +17,15 @@
17
17
  "type": "function"
18
18
  }
19
19
  ],
20
- "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\",\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMaticUsdChainlinkAggregator.sol\":\"TestMaticUsdChainlinkAggregator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IChainlinkAggregator.sol\":{\"keccak256\":\"0xc8c16d8fb7fe57637d33bac84af3ea4c087896612ee629357735c6afe4802a75\",\"urls\":[\"bzz-raw://560ddc4d72da39030111a3ae74dc5f38f0a83eeb30a07bc49c5b6ba3ba07f981\",\"dweb:/ipfs/QmRdYwQRcWHnHmNi6Xuy139AP1SZit5u2NdvmauYjC48V6\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMaticUsdChainlinkAggregator.sol\":{\"keccak256\":\"0x53596dcd1c02a6391007f7d9cefabf7b60f30dc460054749dc82546753a23275\",\"urls\":[\"bzz-raw://6cf34a5ce93e5213dd7b39ce630a0e350413247e40802a126c19240f40ec14e3\",\"dweb:/ipfs/QmRx1B3SyCUV2hCnc1jxaVZWpLCkNYTxFqmySUHJvEJbHh\"]}},\"version\":1}",
21
- "bytecode": "0x6080604052348015600f57600080fd5b5060828061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b63047868c09056fea265627a7a723158207e475c0e8f31e8b950e51538601087a32ca94b9a5b4299c425ef28f466c3d3d964736f6c63430005100032",
22
- "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b63047868c09056fea265627a7a723158207e475c0e8f31e8b950e51538601087a32ca94b9a5b4299c425ef28f466c3d3d964736f6c63430005100032",
20
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\",\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMaticUsdChainlinkAggregator.sol\":\"TestMaticUsdChainlinkAggregator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol\":{\"keccak256\":\"0xc8c16d8fb7fe57637d33bac84af3ea4c087896612ee629357735c6afe4802a75\",\"urls\":[\"bzz-raw://560ddc4d72da39030111a3ae74dc5f38f0a83eeb30a07bc49c5b6ba3ba07f981\",\"dweb:/ipfs/QmRdYwQRcWHnHmNi6Xuy139AP1SZit5u2NdvmauYjC48V6\"]},\"/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMaticUsdChainlinkAggregator.sol\":{\"keccak256\":\"0x53596dcd1c02a6391007f7d9cefabf7b60f30dc460054749dc82546753a23275\",\"urls\":[\"bzz-raw://6cf34a5ce93e5213dd7b39ce630a0e350413247e40802a126c19240f40ec14e3\",\"dweb:/ipfs/QmRx1B3SyCUV2hCnc1jxaVZWpLCkNYTxFqmySUHJvEJbHh\"]}},\"version\":1}",
21
+ "bytecode": "0x6080604052348015600f57600080fd5b5060828061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b63047868c09056fea265627a7a723158207a2207550f99b74dd83297c390431bad555a1be9e75d73c7871e85afbf5c6b8d64736f6c63430005100032",
22
+ "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b63047868c09056fea265627a7a723158207a2207550f99b74dd83297c390431bad555a1be9e75d73c7871e85afbf5c6b8d64736f6c63430005100032",
23
23
  "sourceMap": "792:177:103:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;792:177:103;;;;;;;",
24
24
  "deployedSourceMap": "792:177:103:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;792:177:103;;;;;;;;;;;;;;;;;;;864:102;;;:::i;:::-;;;;;;;;;;;;;;;;;951:8;864:102;:::o",
25
25
  "source": "/*\n\n Copyright 2020 Dolomite.\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;\n\nimport \"../external/interfaces/IChainlinkAggregator.sol\";\n\n/**\n * @dev Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.\n */\ncontract TestMaticUsdChainlinkAggregator is IChainlinkAggregator {\n\n function latestAnswer() public view returns (int256) {\n // $0.75\n return 75000000;\n }\n\n}\n",
26
- "sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMaticUsdChainlinkAggregator.sol",
26
+ "sourcePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMaticUsdChainlinkAggregator.sol",
27
27
  "ast": {
28
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMaticUsdChainlinkAggregator.sol",
28
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMaticUsdChainlinkAggregator.sol",
29
29
  "exportedSymbols": {
30
30
  "TestMaticUsdChainlinkAggregator": [
31
31
  36881
@@ -46,7 +46,7 @@
46
46
  "src": "595:23:103"
47
47
  },
48
48
  {
49
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IChainlinkAggregator.sol",
49
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol",
50
50
  "file": "../external/interfaces/IChainlinkAggregator.sol",
51
51
  "id": 36870,
52
52
  "nodeType": "ImportDirective",
@@ -183,7 +183,7 @@
183
183
  "src": "595:375:103"
184
184
  },
185
185
  "legacyAST": {
186
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/testing/TestMaticUsdChainlinkAggregator.sol",
186
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/testing/TestMaticUsdChainlinkAggregator.sol",
187
187
  "exportedSymbols": {
188
188
  "TestMaticUsdChainlinkAggregator": [
189
189
  36881
@@ -204,7 +204,7 @@
204
204
  "src": "595:23:103"
205
205
  },
206
206
  {
207
- "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IChainlinkAggregator.sol",
207
+ "absolutePath": "/Users/corey/Leavitt-Innovations/dolomite-v2-protocol/contracts/external/interfaces/IChainlinkAggregator.sol",
208
208
  "file": "../external/interfaces/IChainlinkAggregator.sol",
209
209
  "id": 36870,
210
210
  "nodeType": "ImportDirective",
@@ -349,11 +349,11 @@
349
349
  "events": {},
350
350
  "links": {},
351
351
  "address": "0x5b9b42d6e4B2e4Bf8d42Eba32D46918e10899B66",
352
- "transactionHash": "0x3b45706402092732f878152a3201960605a0b11a0f2534d9ef16bad992d67aaa"
352
+ "transactionHash": "0x6f5828edbb7911165d889e08524284b63603408dc7e70b5bcf55bba76c8cfc3b"
353
353
  }
354
354
  },
355
355
  "schemaVersion": "3.0.23",
356
- "updatedAt": "2022-02-04T01:55:01.274Z",
356
+ "updatedAt": "2022-02-07T07:18:45.430Z",
357
357
  "devdoc": {
358
358
  "details": "Gets the latest price from the Chainlink Oracle Network. Amount of decimals depends on the base.",
359
359
  "methods": {}