├── .env.example ├── .github └── workflows │ ├── coverage.yml │ ├── test-fuzz.yml │ ├── test-gas.yml │ ├── test-integration.yml │ ├── test-invariant.yml │ └── test-sizes.yml ├── .gitignore ├── .gitmodules ├── .lintstagedrc ├── .prettierrc ├── .solhint.json ├── LICENSE ├── Makefile ├── README.md ├── broadcast └── deployments │ └── mainnet-v1.json ├── foundry.toml ├── package.json ├── script ├── DeployBase.sol └── DeployProduction.s.sol ├── slither.config.json ├── src ├── Migratable.sol ├── Proxy.sol ├── WrappedMToken.sol ├── interfaces │ ├── IMTokenLike.sol │ ├── IMigratable.sol │ ├── IRegistrarLike.sol │ └── IWrappedMToken.sol └── libs │ └── IndexingMath.sol ├── test.sh ├── test ├── Migration.t.sol ├── Stories.t.sol ├── WrappedMToken.t.sol ├── integration │ ├── Deploy.t.sol │ ├── MorphoBlue.t.sol │ ├── Protocol.t.sol │ ├── TestBase.sol │ ├── UniswapV3.t.sol │ └── vendor │ │ ├── morpho-blue │ │ └── Interfaces.sol │ │ ├── protocol │ │ └── Interfaces.sol │ │ └── uniswap-v3 │ │ ├── Interfaces.sol │ │ └── Utils.sol └── utils │ ├── Invariants.sol │ ├── Mocks.sol │ └── WrappedMTokenHarness.sol └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.env.example -------------------------------------------------------------------------------- /.github/workflows/coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.github/workflows/coverage.yml -------------------------------------------------------------------------------- /.github/workflows/test-fuzz.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.github/workflows/test-fuzz.yml -------------------------------------------------------------------------------- /.github/workflows/test-gas.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.github/workflows/test-gas.yml -------------------------------------------------------------------------------- /.github/workflows/test-integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.github/workflows/test-integration.yml -------------------------------------------------------------------------------- /.github/workflows/test-invariant.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.github/workflows/test-invariant.yml -------------------------------------------------------------------------------- /.github/workflows/test-sizes.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.github/workflows/test-sizes.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.gitmodules -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.lintstagedrc -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.prettierrc -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/.solhint.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/README.md -------------------------------------------------------------------------------- /broadcast/deployments/mainnet-v1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/broadcast/deployments/mainnet-v1.json -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/foundry.toml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/package.json -------------------------------------------------------------------------------- /script/DeployBase.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/script/DeployBase.sol -------------------------------------------------------------------------------- /script/DeployProduction.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/script/DeployProduction.s.sol -------------------------------------------------------------------------------- /slither.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/slither.config.json -------------------------------------------------------------------------------- /src/Migratable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/Migratable.sol -------------------------------------------------------------------------------- /src/Proxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/Proxy.sol -------------------------------------------------------------------------------- /src/WrappedMToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/WrappedMToken.sol -------------------------------------------------------------------------------- /src/interfaces/IMTokenLike.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/interfaces/IMTokenLike.sol -------------------------------------------------------------------------------- /src/interfaces/IMigratable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/interfaces/IMigratable.sol -------------------------------------------------------------------------------- /src/interfaces/IRegistrarLike.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/interfaces/IRegistrarLike.sol -------------------------------------------------------------------------------- /src/interfaces/IWrappedMToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/interfaces/IWrappedMToken.sol -------------------------------------------------------------------------------- /src/libs/IndexingMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/src/libs/IndexingMath.sol -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test.sh -------------------------------------------------------------------------------- /test/Migration.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/Migration.t.sol -------------------------------------------------------------------------------- /test/Stories.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/Stories.t.sol -------------------------------------------------------------------------------- /test/WrappedMToken.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/WrappedMToken.t.sol -------------------------------------------------------------------------------- /test/integration/Deploy.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/Deploy.t.sol -------------------------------------------------------------------------------- /test/integration/MorphoBlue.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/MorphoBlue.t.sol -------------------------------------------------------------------------------- /test/integration/Protocol.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/Protocol.t.sol -------------------------------------------------------------------------------- /test/integration/TestBase.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/TestBase.sol -------------------------------------------------------------------------------- /test/integration/UniswapV3.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/UniswapV3.t.sol -------------------------------------------------------------------------------- /test/integration/vendor/morpho-blue/Interfaces.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/vendor/morpho-blue/Interfaces.sol -------------------------------------------------------------------------------- /test/integration/vendor/protocol/Interfaces.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/vendor/protocol/Interfaces.sol -------------------------------------------------------------------------------- /test/integration/vendor/uniswap-v3/Interfaces.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/vendor/uniswap-v3/Interfaces.sol -------------------------------------------------------------------------------- /test/integration/vendor/uniswap-v3/Utils.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/integration/vendor/uniswap-v3/Utils.sol -------------------------------------------------------------------------------- /test/utils/Invariants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/utils/Invariants.sol -------------------------------------------------------------------------------- /test/utils/Mocks.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/utils/Mocks.sol -------------------------------------------------------------------------------- /test/utils/WrappedMTokenHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/test/utils/WrappedMTokenHarness.sol -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m0-foundation/wrapped-m-token/HEAD/yarn.lock --------------------------------------------------------------------------------