├── .gitattributes ├── .github └── workflows │ ├── certora.yml │ └── tests.yaml ├── .gitignore ├── .gitmodules ├── LICENSE ├── Makefile ├── README.md ├── audits ├── 2021_11_ChainSecurity_MakerDAO_D3M_audit.pdf ├── 2022_10_ChainSecurity_MakerDAO_Direct_Deposit_V2_audit.pdf ├── 2024_03_ChainSecurity_MakerDAO_D3M_ERC-4626_audit.pdf ├── 2024_03_ChainSecurity_MakerDAO_Direct_Deposit_V2_audit.pdf ├── 2024_03_Spearbit-report-maker-d3m-implementation-for-morpho-review.pdf └── 2024_09_ChainSecurity_MakerDAO_D3M_AaveV3_USDS_Pool_audit.pdf ├── certora ├── D3MHub.conf ├── D3MHub.spec ├── d3m │ ├── D3MTestPlan.sol │ └── D3MTestPool.sol └── dss │ ├── Dai.sol │ ├── DaiJoin.sol │ ├── End.sol │ └── Vat.sol ├── deploy-core.sh ├── deploy.sh ├── foundry.toml ├── init-core.sh ├── init.sh ├── script ├── D3MCoreDeploy.s.sol ├── D3MCoreInit.s.sol ├── D3MDeploy.s.sol ├── D3MInit.s.sol └── input │ ├── 1 │ ├── template-aave-v3-lido.json │ ├── template-aave.json │ ├── template-compound.json │ ├── template-core.json │ ├── template-morpho.json │ └── template-spark.json │ └── 5 │ ├── template-aave.json │ ├── template-compound.json │ ├── template-core.json │ └── template-spark.json └── src ├── D3MHub.sol ├── D3MMom.sol ├── D3MOracle.sol ├── deploy ├── D3MCoreInstance.sol ├── D3MDeploy.sol ├── D3MInit.sol └── D3MInstance.sol ├── plans ├── D3MAaveTypeBufferPlan.sol ├── D3MAaveV2TypeRateTargetPlan.sol ├── D3MCompoundV2TypeRateTargetPlan.sol ├── D3MOperatorPlan.sol └── ID3MPlan.sol ├── pools ├── D3M4626TypePool.sol ├── D3MAaveV2TypePool.sol ├── D3MAaveV3NoSupplyCapTypePool.sol ├── D3MAaveV3USDSNoSupplyCapTypePool.sol ├── D3MCompoundV2TypePool.sol └── ID3MPool.sol └── tests ├── D3MHub.t.sol ├── D3MMom.t.sol ├── D3MOracle.t.sol ├── integration ├── AaveV3.t.sol ├── D3MAaveV2.t.sol ├── D3MCompoundV2.t.sol ├── IntegrationBase.t.sol ├── MetaMorpho.t.sol └── SparkLend.t.sol ├── mocks ├── EndMock.sol ├── HubMock.sol ├── TokenMock.sol └── VatMock.sol ├── plans ├── D3MAaveTypeBufferPlan.t.sol ├── D3MAaveV2TypeRateTargetPlan.t.sol ├── D3MCompoundV2TypeRateTargetPlan.t.sol ├── D3MOperatorPlan.t.sol └── D3MPlanBase.t.sol └── pools ├── D3M4626TypePool.t.sol ├── D3MAaveV2TypePool.t.sol ├── D3MAaveV3NoSupplyCapTypePool.t.sol ├── D3MAaveV3USDSNoSupplyCapTypePool.t.sol ├── D3MCompoundV2TypePool.t.sol └── D3MPoolBase.t.sol /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.github/workflows/certora.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/.github/workflows/certora.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/.github/workflows/tests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/README.md -------------------------------------------------------------------------------- /audits/2021_11_ChainSecurity_MakerDAO_D3M_audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/audits/2021_11_ChainSecurity_MakerDAO_D3M_audit.pdf -------------------------------------------------------------------------------- /audits/2022_10_ChainSecurity_MakerDAO_Direct_Deposit_V2_audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/audits/2022_10_ChainSecurity_MakerDAO_Direct_Deposit_V2_audit.pdf -------------------------------------------------------------------------------- /audits/2024_03_ChainSecurity_MakerDAO_D3M_ERC-4626_audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/audits/2024_03_ChainSecurity_MakerDAO_D3M_ERC-4626_audit.pdf -------------------------------------------------------------------------------- /audits/2024_03_ChainSecurity_MakerDAO_Direct_Deposit_V2_audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/audits/2024_03_ChainSecurity_MakerDAO_Direct_Deposit_V2_audit.pdf -------------------------------------------------------------------------------- /audits/2024_03_Spearbit-report-maker-d3m-implementation-for-morpho-review.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/audits/2024_03_Spearbit-report-maker-d3m-implementation-for-morpho-review.pdf -------------------------------------------------------------------------------- /audits/2024_09_ChainSecurity_MakerDAO_D3M_AaveV3_USDS_Pool_audit.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/audits/2024_09_ChainSecurity_MakerDAO_D3M_AaveV3_USDS_Pool_audit.pdf -------------------------------------------------------------------------------- /certora/D3MHub.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/D3MHub.conf -------------------------------------------------------------------------------- /certora/D3MHub.spec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/D3MHub.spec -------------------------------------------------------------------------------- /certora/d3m/D3MTestPlan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/d3m/D3MTestPlan.sol -------------------------------------------------------------------------------- /certora/d3m/D3MTestPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/d3m/D3MTestPool.sol -------------------------------------------------------------------------------- /certora/dss/Dai.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/dss/Dai.sol -------------------------------------------------------------------------------- /certora/dss/DaiJoin.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/dss/DaiJoin.sol -------------------------------------------------------------------------------- /certora/dss/End.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/dss/End.sol -------------------------------------------------------------------------------- /certora/dss/Vat.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/certora/dss/Vat.sol -------------------------------------------------------------------------------- /deploy-core.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/deploy-core.sh -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/deploy.sh -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/foundry.toml -------------------------------------------------------------------------------- /init-core.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/init-core.sh -------------------------------------------------------------------------------- /init.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/init.sh -------------------------------------------------------------------------------- /script/D3MCoreDeploy.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/D3MCoreDeploy.s.sol -------------------------------------------------------------------------------- /script/D3MCoreInit.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/D3MCoreInit.s.sol -------------------------------------------------------------------------------- /script/D3MDeploy.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/D3MDeploy.s.sol -------------------------------------------------------------------------------- /script/D3MInit.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/D3MInit.s.sol -------------------------------------------------------------------------------- /script/input/1/template-aave-v3-lido.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/1/template-aave-v3-lido.json -------------------------------------------------------------------------------- /script/input/1/template-aave.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/1/template-aave.json -------------------------------------------------------------------------------- /script/input/1/template-compound.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/1/template-compound.json -------------------------------------------------------------------------------- /script/input/1/template-core.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/1/template-core.json -------------------------------------------------------------------------------- /script/input/1/template-morpho.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/1/template-morpho.json -------------------------------------------------------------------------------- /script/input/1/template-spark.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/1/template-spark.json -------------------------------------------------------------------------------- /script/input/5/template-aave.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/5/template-aave.json -------------------------------------------------------------------------------- /script/input/5/template-compound.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/5/template-compound.json -------------------------------------------------------------------------------- /script/input/5/template-core.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/5/template-core.json -------------------------------------------------------------------------------- /script/input/5/template-spark.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/script/input/5/template-spark.json -------------------------------------------------------------------------------- /src/D3MHub.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/D3MHub.sol -------------------------------------------------------------------------------- /src/D3MMom.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/D3MMom.sol -------------------------------------------------------------------------------- /src/D3MOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/D3MOracle.sol -------------------------------------------------------------------------------- /src/deploy/D3MCoreInstance.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/deploy/D3MCoreInstance.sol -------------------------------------------------------------------------------- /src/deploy/D3MDeploy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/deploy/D3MDeploy.sol -------------------------------------------------------------------------------- /src/deploy/D3MInit.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/deploy/D3MInit.sol -------------------------------------------------------------------------------- /src/deploy/D3MInstance.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/deploy/D3MInstance.sol -------------------------------------------------------------------------------- /src/plans/D3MAaveTypeBufferPlan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/plans/D3MAaveTypeBufferPlan.sol -------------------------------------------------------------------------------- /src/plans/D3MAaveV2TypeRateTargetPlan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/plans/D3MAaveV2TypeRateTargetPlan.sol -------------------------------------------------------------------------------- /src/plans/D3MCompoundV2TypeRateTargetPlan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/plans/D3MCompoundV2TypeRateTargetPlan.sol -------------------------------------------------------------------------------- /src/plans/D3MOperatorPlan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/plans/D3MOperatorPlan.sol -------------------------------------------------------------------------------- /src/plans/ID3MPlan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/plans/ID3MPlan.sol -------------------------------------------------------------------------------- /src/pools/D3M4626TypePool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/pools/D3M4626TypePool.sol -------------------------------------------------------------------------------- /src/pools/D3MAaveV2TypePool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/pools/D3MAaveV2TypePool.sol -------------------------------------------------------------------------------- /src/pools/D3MAaveV3NoSupplyCapTypePool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/pools/D3MAaveV3NoSupplyCapTypePool.sol -------------------------------------------------------------------------------- /src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/pools/D3MAaveV3USDSNoSupplyCapTypePool.sol -------------------------------------------------------------------------------- /src/pools/D3MCompoundV2TypePool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/pools/D3MCompoundV2TypePool.sol -------------------------------------------------------------------------------- /src/pools/ID3MPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/pools/ID3MPool.sol -------------------------------------------------------------------------------- /src/tests/D3MHub.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/D3MHub.t.sol -------------------------------------------------------------------------------- /src/tests/D3MMom.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/D3MMom.t.sol -------------------------------------------------------------------------------- /src/tests/D3MOracle.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/D3MOracle.t.sol -------------------------------------------------------------------------------- /src/tests/integration/AaveV3.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/integration/AaveV3.t.sol -------------------------------------------------------------------------------- /src/tests/integration/D3MAaveV2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/integration/D3MAaveV2.t.sol -------------------------------------------------------------------------------- /src/tests/integration/D3MCompoundV2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/integration/D3MCompoundV2.t.sol -------------------------------------------------------------------------------- /src/tests/integration/IntegrationBase.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/integration/IntegrationBase.t.sol -------------------------------------------------------------------------------- /src/tests/integration/MetaMorpho.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/integration/MetaMorpho.t.sol -------------------------------------------------------------------------------- /src/tests/integration/SparkLend.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/integration/SparkLend.t.sol -------------------------------------------------------------------------------- /src/tests/mocks/EndMock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/mocks/EndMock.sol -------------------------------------------------------------------------------- /src/tests/mocks/HubMock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/mocks/HubMock.sol -------------------------------------------------------------------------------- /src/tests/mocks/TokenMock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/mocks/TokenMock.sol -------------------------------------------------------------------------------- /src/tests/mocks/VatMock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/mocks/VatMock.sol -------------------------------------------------------------------------------- /src/tests/plans/D3MAaveTypeBufferPlan.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/plans/D3MAaveTypeBufferPlan.t.sol -------------------------------------------------------------------------------- /src/tests/plans/D3MAaveV2TypeRateTargetPlan.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/plans/D3MAaveV2TypeRateTargetPlan.t.sol -------------------------------------------------------------------------------- /src/tests/plans/D3MCompoundV2TypeRateTargetPlan.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/plans/D3MCompoundV2TypeRateTargetPlan.t.sol -------------------------------------------------------------------------------- /src/tests/plans/D3MOperatorPlan.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/plans/D3MOperatorPlan.t.sol -------------------------------------------------------------------------------- /src/tests/plans/D3MPlanBase.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/plans/D3MPlanBase.t.sol -------------------------------------------------------------------------------- /src/tests/pools/D3M4626TypePool.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/pools/D3M4626TypePool.t.sol -------------------------------------------------------------------------------- /src/tests/pools/D3MAaveV2TypePool.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/pools/D3MAaveV2TypePool.t.sol -------------------------------------------------------------------------------- /src/tests/pools/D3MAaveV3NoSupplyCapTypePool.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/pools/D3MAaveV3NoSupplyCapTypePool.t.sol -------------------------------------------------------------------------------- /src/tests/pools/D3MAaveV3USDSNoSupplyCapTypePool.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/pools/D3MAaveV3USDSNoSupplyCapTypePool.t.sol -------------------------------------------------------------------------------- /src/tests/pools/D3MCompoundV2TypePool.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/pools/D3MCompoundV2TypePool.t.sol -------------------------------------------------------------------------------- /src/tests/pools/D3MPoolBase.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sky-ecosystem/dss-direct-deposit/HEAD/src/tests/pools/D3MPoolBase.t.sol --------------------------------------------------------------------------------