├── .eslintignore ├── .eslintrc.json ├── .gitattributes ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .solcover.js ├── .solhint.json ├── .solhintignore ├── README.md ├── audits ├── Certik-Audit.pdf ├── Halborn-Audit.pdf ├── Salusec-Audit.pdf ├── Veridise-Audit.pdf └── range-veridise-vault-diff-audit.pdf ├── contracts ├── RangeProtocolFactory.sol ├── RangeProtocolVault.sol ├── RangeProtocolVaultStorage.sol ├── access │ └── OwnableUpgradeable.sol ├── errors │ ├── FactoryErrors.sol │ └── VaultErrors.sol ├── interfaces │ ├── IRangeProtocolFactory.sol │ └── IRangeProtocolVault.sol ├── mock │ ├── FixedPoint96.sol │ ├── FullMath.sol │ ├── LowGasSafeMath.sol │ ├── MockERC20.sol │ ├── MockLiquidityAmounts.sol │ ├── MockSqrtPriceMath.sol │ ├── SafeCast.sol │ ├── SwapTest.sol │ └── UnsafeMath.sol └── uniswap │ ├── FullMath.sol │ ├── LiquidityAmounts.sol │ └── TickMath.sol ├── deploy ├── config.json ├── hot-deployment │ ├── factory.ts │ ├── implementation.ts │ └── vault.ts ├── ledger │ ├── RangeProtocolFactory.deploy.ts │ ├── RangeProtocolVault.implementation.deploy.ts │ └── RangeProtocolVault.proxy.deploy.ts └── mock │ └── dummy-token.ts ├── hardhat.config.ts ├── package.json ├── scripts ├── UpgradeImplementation.ts ├── deploy-vault.ts ├── timelock-execute-update-owner.ts ├── timelock-schedule-update-owner.ts └── updateOwner.ts ├── test ├── RangeProtocolFactory.test.ts ├── RangeProtocolVault.exposure.test.ts ├── RangeProtocolVault.test.ts └── common.ts ├── tsconfig.json └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/.prettierrc -------------------------------------------------------------------------------- /.solcover.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/.solcover.js -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/.solhint.json -------------------------------------------------------------------------------- /.solhintignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/README.md -------------------------------------------------------------------------------- /audits/Certik-Audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/audits/Certik-Audit.pdf -------------------------------------------------------------------------------- /audits/Halborn-Audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/audits/Halborn-Audit.pdf -------------------------------------------------------------------------------- /audits/Salusec-Audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/audits/Salusec-Audit.pdf -------------------------------------------------------------------------------- /audits/Veridise-Audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/audits/Veridise-Audit.pdf -------------------------------------------------------------------------------- /audits/range-veridise-vault-diff-audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/audits/range-veridise-vault-diff-audit.pdf -------------------------------------------------------------------------------- /contracts/RangeProtocolFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/RangeProtocolFactory.sol -------------------------------------------------------------------------------- /contracts/RangeProtocolVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/RangeProtocolVault.sol -------------------------------------------------------------------------------- /contracts/RangeProtocolVaultStorage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/RangeProtocolVaultStorage.sol -------------------------------------------------------------------------------- /contracts/access/OwnableUpgradeable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/access/OwnableUpgradeable.sol -------------------------------------------------------------------------------- /contracts/errors/FactoryErrors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/errors/FactoryErrors.sol -------------------------------------------------------------------------------- /contracts/errors/VaultErrors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/errors/VaultErrors.sol -------------------------------------------------------------------------------- /contracts/interfaces/IRangeProtocolFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/interfaces/IRangeProtocolFactory.sol -------------------------------------------------------------------------------- /contracts/interfaces/IRangeProtocolVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/interfaces/IRangeProtocolVault.sol -------------------------------------------------------------------------------- /contracts/mock/FixedPoint96.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/FixedPoint96.sol -------------------------------------------------------------------------------- /contracts/mock/FullMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/FullMath.sol -------------------------------------------------------------------------------- /contracts/mock/LowGasSafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/LowGasSafeMath.sol -------------------------------------------------------------------------------- /contracts/mock/MockERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/MockERC20.sol -------------------------------------------------------------------------------- /contracts/mock/MockLiquidityAmounts.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/MockLiquidityAmounts.sol -------------------------------------------------------------------------------- /contracts/mock/MockSqrtPriceMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/MockSqrtPriceMath.sol -------------------------------------------------------------------------------- /contracts/mock/SafeCast.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/SafeCast.sol -------------------------------------------------------------------------------- /contracts/mock/SwapTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/SwapTest.sol -------------------------------------------------------------------------------- /contracts/mock/UnsafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/mock/UnsafeMath.sol -------------------------------------------------------------------------------- /contracts/uniswap/FullMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/uniswap/FullMath.sol -------------------------------------------------------------------------------- /contracts/uniswap/LiquidityAmounts.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/uniswap/LiquidityAmounts.sol -------------------------------------------------------------------------------- /contracts/uniswap/TickMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/contracts/uniswap/TickMath.sol -------------------------------------------------------------------------------- /deploy/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/config.json -------------------------------------------------------------------------------- /deploy/hot-deployment/factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/hot-deployment/factory.ts -------------------------------------------------------------------------------- /deploy/hot-deployment/implementation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/hot-deployment/implementation.ts -------------------------------------------------------------------------------- /deploy/hot-deployment/vault.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/hot-deployment/vault.ts -------------------------------------------------------------------------------- /deploy/ledger/RangeProtocolFactory.deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/ledger/RangeProtocolFactory.deploy.ts -------------------------------------------------------------------------------- /deploy/ledger/RangeProtocolVault.implementation.deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/ledger/RangeProtocolVault.implementation.deploy.ts -------------------------------------------------------------------------------- /deploy/ledger/RangeProtocolVault.proxy.deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/ledger/RangeProtocolVault.proxy.deploy.ts -------------------------------------------------------------------------------- /deploy/mock/dummy-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/deploy/mock/dummy-token.ts -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/package.json -------------------------------------------------------------------------------- /scripts/UpgradeImplementation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/scripts/UpgradeImplementation.ts -------------------------------------------------------------------------------- /scripts/deploy-vault.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/scripts/deploy-vault.ts -------------------------------------------------------------------------------- /scripts/timelock-execute-update-owner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/scripts/timelock-execute-update-owner.ts -------------------------------------------------------------------------------- /scripts/timelock-schedule-update-owner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/scripts/timelock-schedule-update-owner.ts -------------------------------------------------------------------------------- /scripts/updateOwner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/scripts/updateOwner.ts -------------------------------------------------------------------------------- /test/RangeProtocolFactory.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/test/RangeProtocolFactory.test.ts -------------------------------------------------------------------------------- /test/RangeProtocolVault.exposure.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/test/RangeProtocolVault.exposure.test.ts -------------------------------------------------------------------------------- /test/RangeProtocolVault.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/test/RangeProtocolVault.test.ts -------------------------------------------------------------------------------- /test/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/test/common.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Range-Protocol/contracts/HEAD/yarn.lock --------------------------------------------------------------------------------