├── .gitignore ├── LICENSE ├── README.md ├── contracts ├── BathHouseV2.sol ├── RubiconMarket.sol ├── V2Migrator.sol ├── compound-v2-fork │ ├── BaseJumpRateModelV2.sol │ ├── CDaiDelegate.sol │ ├── CErc20.sol │ ├── CErc20Delegate.sol │ ├── CErc20Delegator.sol │ ├── CErc20Immutable.sol │ ├── CEther.sol │ ├── CToken.sol │ ├── CTokenInterfaces.sol │ ├── Comptroller.sol │ ├── ComptrollerInterface.sol │ ├── ComptrollerStorage.sol │ ├── DAIInterestRateModelV3.sol │ ├── EIP20Interface.sol │ ├── EIP20NonStandardInterface.sol │ ├── ErrorReporter.sol │ ├── ExponentialNoError.sol │ ├── InterestRateModel.sol │ ├── JumpRateModel.sol │ ├── JumpRateModelV2.sol │ ├── Lens │ │ └── CompoundLens.sol │ ├── Maximillion.sol │ ├── PriceOracle.sol │ ├── Reservoir.sol │ ├── SafeMath.sol │ ├── SimplePriceOracle.sol │ ├── Timelock.sol │ ├── Unitroller.sol │ └── WhitePaperInterestRateModel.sol ├── interfaces │ ├── IBathBuddy.sol │ ├── IBathToken.sol │ ├── IRubiconMarket.sol │ ├── ISwapRouter.sol │ └── IWETH.sol ├── periphery │ ├── BathBuddy.sol │ ├── BathTokenV1.sol │ ├── DummyPriceOracle.sol │ ├── RubiconMarketV1.sol │ ├── Test3rdPartyProtocol.sol │ ├── TokenWithFaucet.sol │ └── WETH9.sol ├── proxy │ └── RubiconProxy.sol └── utilities │ ├── FeeWrapper.sol │ ├── MarketAid.sol │ ├── MarketAidFactory.sol │ ├── RubiconRouter.sol │ └── poolsUtility │ ├── PoolsUtility.sol │ └── Position.sol ├── hardhat.config.ts ├── package.json ├── test ├── ProtocolDeployment.ts ├── bath-buddy.ts ├── bath-house.ts ├── fee-wrapper.ts ├── leverage-wrapper.ts └── migration.ts ├── tsconfig.json ├── whitepaper └── README.md ├── yarn-error.log └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/README.md -------------------------------------------------------------------------------- /contracts/BathHouseV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/BathHouseV2.sol -------------------------------------------------------------------------------- /contracts/RubiconMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/RubiconMarket.sol -------------------------------------------------------------------------------- /contracts/V2Migrator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/V2Migrator.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/BaseJumpRateModelV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/BaseJumpRateModelV2.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CDaiDelegate.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CDaiDelegate.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CErc20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CErc20.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CErc20Delegate.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CErc20Delegate.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CErc20Delegator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CErc20Delegator.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CErc20Immutable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CErc20Immutable.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CEther.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CEther.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CToken.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/CTokenInterfaces.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/CTokenInterfaces.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/Comptroller.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/Comptroller.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/ComptrollerInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/ComptrollerInterface.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/ComptrollerStorage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/ComptrollerStorage.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/DAIInterestRateModelV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/DAIInterestRateModelV3.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/EIP20Interface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/EIP20Interface.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/EIP20NonStandardInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/EIP20NonStandardInterface.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/ErrorReporter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/ErrorReporter.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/ExponentialNoError.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/ExponentialNoError.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/InterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/InterestRateModel.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/JumpRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/JumpRateModel.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/JumpRateModelV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/JumpRateModelV2.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/Lens/CompoundLens.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/Lens/CompoundLens.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/Maximillion.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/Maximillion.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/PriceOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/PriceOracle.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/Reservoir.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/Reservoir.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/SafeMath.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/SimplePriceOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/SimplePriceOracle.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/Timelock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/Timelock.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/Unitroller.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/Unitroller.sol -------------------------------------------------------------------------------- /contracts/compound-v2-fork/WhitePaperInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/compound-v2-fork/WhitePaperInterestRateModel.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBathBuddy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/interfaces/IBathBuddy.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBathToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/interfaces/IBathToken.sol -------------------------------------------------------------------------------- /contracts/interfaces/IRubiconMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/interfaces/IRubiconMarket.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwapRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/interfaces/ISwapRouter.sol -------------------------------------------------------------------------------- /contracts/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/interfaces/IWETH.sol -------------------------------------------------------------------------------- /contracts/periphery/BathBuddy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/periphery/BathBuddy.sol -------------------------------------------------------------------------------- /contracts/periphery/BathTokenV1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/periphery/BathTokenV1.sol -------------------------------------------------------------------------------- /contracts/periphery/DummyPriceOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/periphery/DummyPriceOracle.sol -------------------------------------------------------------------------------- /contracts/periphery/RubiconMarketV1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/periphery/RubiconMarketV1.sol -------------------------------------------------------------------------------- /contracts/periphery/Test3rdPartyProtocol.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/periphery/Test3rdPartyProtocol.sol -------------------------------------------------------------------------------- /contracts/periphery/TokenWithFaucet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/periphery/TokenWithFaucet.sol -------------------------------------------------------------------------------- /contracts/periphery/WETH9.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/periphery/WETH9.sol -------------------------------------------------------------------------------- /contracts/proxy/RubiconProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/proxy/RubiconProxy.sol -------------------------------------------------------------------------------- /contracts/utilities/FeeWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/utilities/FeeWrapper.sol -------------------------------------------------------------------------------- /contracts/utilities/MarketAid.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/utilities/MarketAid.sol -------------------------------------------------------------------------------- /contracts/utilities/MarketAidFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/utilities/MarketAidFactory.sol -------------------------------------------------------------------------------- /contracts/utilities/RubiconRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/utilities/RubiconRouter.sol -------------------------------------------------------------------------------- /contracts/utilities/poolsUtility/PoolsUtility.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/utilities/poolsUtility/PoolsUtility.sol -------------------------------------------------------------------------------- /contracts/utilities/poolsUtility/Position.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/contracts/utilities/poolsUtility/Position.sol -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/package.json -------------------------------------------------------------------------------- /test/ProtocolDeployment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/test/ProtocolDeployment.ts -------------------------------------------------------------------------------- /test/bath-buddy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/test/bath-buddy.ts -------------------------------------------------------------------------------- /test/bath-house.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/test/bath-house.ts -------------------------------------------------------------------------------- /test/fee-wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/test/fee-wrapper.ts -------------------------------------------------------------------------------- /test/leverage-wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/test/leverage-wrapper.ts -------------------------------------------------------------------------------- /test/migration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/test/migration.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/tsconfig.json -------------------------------------------------------------------------------- /whitepaper/README.md: -------------------------------------------------------------------------------- 1 | 🔜™️ -------------------------------------------------------------------------------- /yarn-error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/yarn-error.log -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubiconDeFi/rubi-protocol-v2/HEAD/yarn.lock --------------------------------------------------------------------------------