From ae7f312fef3db85933139eec5f4fe982003fab2a Mon Sep 17 00:00:00 2001 From: MathisGD Date: Fri, 24 Nov 2023 11:46:07 +0100 Subject: [PATCH 1/7] docs: readme and fix licence --- LICENSE | 2 +- README.md | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index de784493..43fa3d37 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2023 Morpho Labs +Copyright (c) 2023 Morpho Association Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index 2050f99e..ff317578 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,22 @@ -# Morpho Blue IRM +# Morpho Blue IRMs + +Some interest rate models for Morpho Blue: +- [AdaptiveCurveIRM](./src/AdaptiveCurveIrm.sol) + +## Ressources + +- AdaptiveCurveIRM: [docs](https://www.notion.so/morpho-labs/Morpho-Blue-Documentation-Hub-External-00ff8194791045deb522821be46abbdc?pvs=4#d8269074bfd649009f28625a9caa38ea), [announcement article](https://morpho.mirror.xyz/aaUjIF85aIi5RT6-pLhVWBzuiCpOb4BV03OYNts2BHQ). ## Audits -All audits are stored in the [audits](./audits/)' folder. \ No newline at end of file +All audits are stored in the [audits](./audits/)' folder. + +## Licences + +The primary licence is MIT, see [LICENCE](./LICENSE). + +## Getting started + +Install dependencies: `forge install` + +Run tests: `forge test` From ea6bf38be7bdec7796f4f5e7f8eea8a13540155a Mon Sep 17 00:00:00 2001 From: MathisGD Date: Fri, 24 Nov 2023 11:48:18 +0100 Subject: [PATCH 2/7] chore: fmt --- test/AdaptiveCurveIrmTest.sol | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/AdaptiveCurveIrmTest.sol b/test/AdaptiveCurveIrmTest.sol index b08d4ec0..ea980cf9 100644 --- a/test/AdaptiveCurveIrmTest.sol +++ b/test/AdaptiveCurveIrmTest.sol @@ -24,8 +24,9 @@ contract AdaptiveCurveIrmTest is Test { MarketParams internal marketParams = MarketParams(address(0), address(0), address(0), address(0), 0); function setUp() public { - irm = - new AdaptiveCurveIrm(address(this), CURVE_STEEPNESS, ADJUSTMENT_SPEED, TARGET_UTILIZATION, INITIAL_RATE_AT_TARGET); + irm = new AdaptiveCurveIrm( + address(this), CURVE_STEEPNESS, ADJUSTMENT_SPEED, TARGET_UTILIZATION, INITIAL_RATE_AT_TARGET + ); vm.warp(90 days); bytes4[] memory selectors = new bytes4[](1); @@ -187,8 +188,9 @@ contract AdaptiveCurveIrmTest is Test { function testRateAfter3WeeksUtilizationTargetPingEveryMinute() public { int256 initialRateAtTarget = int256(1 ether) / 365 days; // 100% - irm = - new AdaptiveCurveIrm(address(this), CURVE_STEEPNESS, ADJUSTMENT_SPEED, TARGET_UTILIZATION, initialRateAtTarget); + irm = new AdaptiveCurveIrm( + address(this), CURVE_STEEPNESS, ADJUSTMENT_SPEED, TARGET_UTILIZATION, initialRateAtTarget + ); Market memory market; market.totalSupplyAssets = 1 ether; From e89df10590d8171b05ebe48f7fe655fdab936c7b Mon Sep 17 00:00:00 2001 From: MathisGD Date: Fri, 24 Nov 2023 11:59:51 +0100 Subject: [PATCH 3/7] docs: fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff317578..e419584a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Some interest rate models for Morpho Blue: - [AdaptiveCurveIRM](./src/AdaptiveCurveIrm.sol) -## Ressources +## Resources - AdaptiveCurveIRM: [docs](https://www.notion.so/morpho-labs/Morpho-Blue-Documentation-Hub-External-00ff8194791045deb522821be46abbdc?pvs=4#d8269074bfd649009f28625a9caa38ea), [announcement article](https://morpho.mirror.xyz/aaUjIF85aIi5RT6-pLhVWBzuiCpOb4BV03OYNts2BHQ). From 95e07f4b1a475439987e038f05ee18f6d3233128 Mon Sep 17 00:00:00 2001 From: MathisGD <74971347+MathisGD@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:52:38 +0100 Subject: [PATCH 4/7] docs: improvements Co-authored-by: Quentin Garchery Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com> --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e419584a..b27482eb 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,20 @@ # Morpho Blue IRMs Some interest rate models for Morpho Blue: + - [AdaptiveCurveIRM](./src/AdaptiveCurveIrm.sol) ## Resources -- AdaptiveCurveIRM: [docs](https://www.notion.so/morpho-labs/Morpho-Blue-Documentation-Hub-External-00ff8194791045deb522821be46abbdc?pvs=4#d8269074bfd649009f28625a9caa38ea), [announcement article](https://morpho.mirror.xyz/aaUjIF85aIi5RT6-pLhVWBzuiCpOb4BV03OYNts2BHQ). +- AdaptiveCurveIRM: [documentation](https://www.notion.so/morpho-labs/Morpho-Blue-Documentation-Hub-External-00ff8194791045deb522821be46abbdc?pvs=4#d8269074bfd649009f28625a9caa38ea), [announcement article](https://morpho.mirror.xyz/aaUjIF85aIi5RT6-pLhVWBzuiCpOb4BV03OYNts2BHQ). ## Audits -All audits are stored in the [audits](./audits/)' folder. +All audits are stored in the [audits](audits)' folder. ## Licences -The primary licence is MIT, see [LICENCE](./LICENSE). +The primary licence is MIT, see [LICENCE](LICENSE). ## Getting started From 41acf893c671f0bdcc2cf2a4048779cda176a671 Mon Sep 17 00:00:00 2001 From: MathisGD Date: Mon, 27 Nov 2023 12:02:35 +0100 Subject: [PATCH 5/7] docs: minor improvement --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e419584a..4c4eff28 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ Some interest rate models for Morpho Blue: All audits are stored in the [audits](./audits/)' folder. -## Licences - -The primary licence is MIT, see [LICENCE](./LICENSE). - ## Getting started Install dependencies: `forge install` Run tests: `forge test` + +## Licenses + +The primary licence is MIT, see [LICENCE](./LICENSE). From 5ec62f767bd95b65d755744128e6b74c89b8a6b8 Mon Sep 17 00:00:00 2001 From: MathisGD Date: Mon, 27 Nov 2023 12:04:49 +0100 Subject: [PATCH 6/7] docs: minor improvement --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 567e1cd8..7b9f48a6 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,4 @@ Run tests: `forge test` ## Licenses -The primary licence is MIT, see [LICENCE](LICENSE). +The primary license is MIT, see [LICENSE](LICENSE). From 3a3b8cf44650374f2b72afff930f8f3bccf36864 Mon Sep 17 00:00:00 2001 From: MathisGD <74971347+MathisGD@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:52:29 +0100 Subject: [PATCH 7/7] docs: minor improvement Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b9f48a6..4a2cc753 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Some interest rate models for Morpho Blue: -- [AdaptiveCurveIRM](./src/AdaptiveCurveIrm.sol) +- [AdaptiveCurveIRM](src/AdaptiveCurveIrm.sol) ## Resources