Skip to content

Commit

Permalink
Merge pull request #99 from morpho-org/docs/readme
Browse files Browse the repository at this point in the history
Readme and fix license
  • Loading branch information
MathisGD authored Dec 1, 2023
2 parents c2b1732 + 3a3b8cf commit 6692ede
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Morpho Blue IRM
# Morpho Blue IRMs

Some interest rate models for Morpho Blue:

- [AdaptiveCurveIRM](src/AdaptiveCurveIrm.sol)

## Resources

- 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.

## Getting started

Install dependencies: `forge install`

Run tests: `forge test`

## Licenses

The primary license is MIT, see [LICENSE](LICENSE).
10 changes: 6 additions & 4 deletions test/AdaptiveCurveIrmTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6692ede

Please sign in to comment.