Skip to content

Commit

Permalink
Aavechan/optimize eth-correlated assets parameters [Ready for review] (
Browse files Browse the repository at this point in the history
…bgd-labs#355)

* optimize eth correlated assets rates

test failing for ethv3, basev3, optv3, gnov3

* Test passinfg for Opti & Gnosis

still failing for Ethv3 & Base

* test for base and mainnetv3

* updated markdown

* rm V2 changes

* rm V2 tests reports

---------

Co-authored-by: marczeller <[email protected]>
  • Loading branch information
Rozengarden and marczeller authored Jun 18, 2024
1 parent bdb62db commit dff3f1c
Show file tree
Hide file tree
Showing 45 changed files with 1,782 additions and 0 deletions.
1 change: 1 addition & 0 deletions .assets/048fca758555675b88ba367ba86f80e807d3eb1b.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/0873847aaeec62529a46dfb86b634cab0f24ff85.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/20707eb1f47fcf98a914006f2d63d9daa515de6b.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/30a46e1d7b3edcf3e05ed39c2b802da3dfb394d4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/6b6d7d3b24423799c0cb5cc8c539f10b55adce0b.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/79f40b1fe490831a58a3b210506bd38f6e7e3ed1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/7fa4b4b2fd917d2cc659935ebf8fc577c2489a8e.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/95e717662ee38643eaedf29c7ecf9494cf135da3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/982b4fb6e2527921645edf26069ca5a944a85de5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/a4877f5866751d4c748b2860e175e398fd8b0f20.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/b5b60c9a6da247fd6707dc572d95d822d367c535.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/df5063c94fec0289ac8349d5c84e5a33a4a6ccf6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### WETH ([0x82aF49447D8a07e3bd95BD0d56f35241523fBab1](https://arbiscan.io/address/0x82aF49447D8a07e3bd95BD0d56f35241523fBab1))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0xd56eE97960b1b2953e751151Fd84888cF3F3b521](https://arbiscan.io/address/0xd56eE97960b1b2953e751151Fd84888cF3F3b521) | [0x42ec99A020B78C449d17d93bC4c89e0189B5811d](https://arbiscan.io/address/0x42ec99A020B78C449d17d93bC4c89e0189B5811d) |
| variableRateSlope1 | 3 % | 2.7 % |
| baseStableBorrowRate | 6 % | 5.7 % |
| interestRate | ![before](/.assets/908311237d838343e639cb1728e1fd729c5dfb53.svg) | ![after](/.assets/6b6d7d3b24423799c0cb5cc8c539f10b55adce0b.svg) |

## Raw diff

```json
{
"reserves": {
"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1": {
"interestRateStrategy": {
"from": "0xd56eE97960b1b2953e751151Fd84888cF3F3b521",
"to": "0x42ec99A020B78C449d17d93bC4c89e0189B5811d"
}
}
},
"strategies": {
"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1": {
"address": {
"from": "0xd56eE97960b1b2953e751151Fd84888cF3F3b521",
"to": "0x42ec99A020B78C449d17d93bC4c89e0189B5811d"
},
"baseStableBorrowRate": {
"from": "60000000000000000000000000",
"to": "57000000000000000000000000"
},
"variableRateSlope1": {
"from": "30000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### WETH.e ([0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB](https://snowscan.xyz/address/0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0x271f5f8325051f22caDa18FfedD4a805584a232A](https://snowscan.xyz/address/0x271f5f8325051f22caDa18FfedD4a805584a232A) | [0xd5CA18a70189309664e34FB8150799ff13722308](https://snowscan.xyz/address/0xd5CA18a70189309664e34FB8150799ff13722308) |
| variableRateSlope1 | 3.8 % | 2.7 % |
| baseStableBorrowRate | 6.8 % | 5.7 % |
| interestRate | ![before](/.assets/ccc572c1f8557ea58d4ab36b39c7b63825179d06.svg) | ![after](/.assets/a4877f5866751d4c748b2860e175e398fd8b0f20.svg) |

## Raw diff

```json
{
"reserves": {
"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB": {
"interestRateStrategy": {
"from": "0x271f5f8325051f22caDa18FfedD4a805584a232A",
"to": "0xd5CA18a70189309664e34FB8150799ff13722308"
}
}
},
"strategies": {
"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB": {
"address": {
"from": "0x271f5f8325051f22caDa18FfedD4a805584a232A",
"to": "0xd5CA18a70189309664e34FB8150799ff13722308"
},
"baseStableBorrowRate": {
"from": "68000000000000000000000000",
"to": "57000000000000000000000000"
},
"variableRateSlope1": {
"from": "38000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### ETH ([0x2170Ed0880ac9A755fd29B2688956BD959F933F8](https://bscscan.com/address/0x2170Ed0880ac9A755fd29B2688956BD959F933F8))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0x6EB97Ba43A1576989bc203178BD64C1182f24DDc](https://bscscan.com/address/0x6EB97Ba43A1576989bc203178BD64C1182f24DDc) | [0x34E8e73bFB04454bd203410b009124527A57Ea3F](https://bscscan.com/address/0x34E8e73bFB04454bd203410b009124527A57Ea3F) |
| variableRateSlope1 | 3.3 % | 2.7 % |
| baseStableBorrowRate | 5.3 % | 4.7 % |
| interestRate | ![before](/.assets/e2dfe65a12c79353a870b6d8fa76c10ae6723984.svg) | ![after](/.assets/20707eb1f47fcf98a914006f2d63d9daa515de6b.svg) |

## Raw diff

```json
{
"reserves": {
"0x2170Ed0880ac9A755fd29B2688956BD959F933F8": {
"interestRateStrategy": {
"from": "0x6EB97Ba43A1576989bc203178BD64C1182f24DDc",
"to": "0x34E8e73bFB04454bd203410b009124527A57Ea3F"
}
}
},
"strategies": {
"0x2170Ed0880ac9A755fd29B2688956BD959F933F8": {
"address": {
"from": "0x6EB97Ba43A1576989bc203178BD64C1182f24DDc",
"to": "0x34E8e73bFB04454bd203410b009124527A57Ea3F"
},
"baseStableBorrowRate": {
"from": "53000000000000000000000000",
"to": "47000000000000000000000000"
},
"variableRateSlope1": {
"from": "33000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### WETH ([0x4200000000000000000000000000000000000006](https://basescan.org/address/0x4200000000000000000000000000000000000006))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0xC1F6588f4A1145D0B7F94c86a773bB47F0eC0759](https://basescan.org/address/0xC1F6588f4A1145D0B7F94c86a773bB47F0eC0759) | [0x0D9e605d77Ea2ADe3eEAfa86cE353899E9D3d72C](https://basescan.org/address/0x0D9e605d77Ea2ADe3eEAfa86cE353899E9D3d72C) |
| variableRateSlope1 | 3.8 % | 2.7 % |
| baseStableBorrowRate | 6.8 % | 5.7 % |
| interestRate | ![before](/.assets/4a9f82e7b5325d9604ebfd4eef29bb41a0ec2f45.svg) | ![after](/.assets/95e717662ee38643eaedf29c7ecf9494cf135da3.svg) |

## Raw diff

```json
{
"reserves": {
"0x4200000000000000000000000000000000000006": {
"interestRateStrategy": {
"from": "0xC1F6588f4A1145D0B7F94c86a773bB47F0eC0759",
"to": "0x0D9e605d77Ea2ADe3eEAfa86cE353899E9D3d72C"
}
}
},
"strategies": {
"0x4200000000000000000000000000000000000006": {
"address": {
"from": "0xC1F6588f4A1145D0B7F94c86a773bB47F0eC0759",
"to": "0x0D9e605d77Ea2ADe3eEAfa86cE353899E9D3d72C"
},
"baseStableBorrowRate": {
"from": "68000000000000000000000000",
"to": "57000000000000000000000000"
},
"variableRateSlope1": {
"from": "38000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### WETH ([0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2](https://etherscan.io/address/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0x06B1Ec378618EA736a65395eA5CAB69A2410493B](https://etherscan.io/address/0x06B1Ec378618EA736a65395eA5CAB69A2410493B) | [0x42ec99A020B78C449d17d93bC4c89e0189B5811d](https://etherscan.io/address/0x42ec99A020B78C449d17d93bC4c89e0189B5811d) |
| variableRateSlope1 | 2.8 % | 2.7 % |
| baseStableBorrowRate | 5.8 % | 5.7 % |
| interestRate | ![before](/.assets/6daf9269f48389f432568255131ebe0f742fa53b.svg) | ![after](/.assets/6b6d7d3b24423799c0cb5cc8c539f10b55adce0b.svg) |

## Raw diff

```json
{
"reserves": {
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": {
"interestRateStrategy": {
"from": "0x06B1Ec378618EA736a65395eA5CAB69A2410493B",
"to": "0x42ec99A020B78C449d17d93bC4c89e0189B5811d"
}
}
},
"strategies": {
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": {
"address": {
"from": "0x06B1Ec378618EA736a65395eA5CAB69A2410493B",
"to": "0x42ec99A020B78C449d17d93bC4c89e0189B5811d"
},
"baseStableBorrowRate": {
"from": "58000000000000000000000000",
"to": "57000000000000000000000000"
},
"variableRateSlope1": {
"from": "28000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### WETH ([0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1](https://gnosisscan.io/address/0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0xD84d86083010FB683f1e8fA3809ee8DC90A4C4DB](https://gnosisscan.io/address/0xD84d86083010FB683f1e8fA3809ee8DC90A4C4DB) | [0xD3120200c339f608C394CCF9cBAD4bABab63B5dD](https://gnosisscan.io/address/0xD3120200c339f608C394CCF9cBAD4bABab63B5dD) |
| variableRateSlope1 | 3.3 % | 2.7 % |
| baseStableBorrowRate | 5.3 % | 4.7 % |
| interestRate | ![before](/.assets/1a2d00464fd0707711f315bbce0579c505aef532.svg) | ![after](/.assets/df5063c94fec0289ac8349d5c84e5a33a4a6ccf6.svg) |

## Raw diff

```json
{
"reserves": {
"0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1": {
"interestRateStrategy": {
"from": "0xD84d86083010FB683f1e8fA3809ee8DC90A4C4DB",
"to": "0xD3120200c339f608C394CCF9cBAD4bABab63B5dD"
}
}
},
"strategies": {
"0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1": {
"address": {
"from": "0xD84d86083010FB683f1e8fA3809ee8DC90A4C4DB",
"to": "0xD3120200c339f608C394CCF9cBAD4bABab63B5dD"
},
"baseStableBorrowRate": {
"from": "53000000000000000000000000",
"to": "47000000000000000000000000"
},
"variableRateSlope1": {
"from": "33000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### WETH ([0x420000000000000000000000000000000000000A](https://andromeda-explorer.metis.io/address/0x420000000000000000000000000000000000000A))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0x83e654d42f437915bf849dE04c19AAd8C5e8c01E](https://andromeda-explorer.metis.io/address/0x83e654d42f437915bf849dE04c19AAd8C5e8c01E) | [0xf043D74F1CbF798D8E9a3cB19fDf2084C275f921](https://andromeda-explorer.metis.io/address/0xf043D74F1CbF798D8E9a3cB19fDf2084C275f921) |
| variableRateSlope1 | 3.8 % | 2.7 % |
| baseStableBorrowRate | 6.8 % | 5.7 % |
| interestRate | ![before](/.assets/7396caa31f7811576cb04a4e90aac9ea03560ba2.svg) | ![after](/.assets/b5b60c9a6da247fd6707dc572d95d822d367c535.svg) |

## Raw diff

```json
{
"reserves": {
"0x420000000000000000000000000000000000000A": {
"interestRateStrategy": {
"from": "0x83e654d42f437915bf849dE04c19AAd8C5e8c01E",
"to": "0xf043D74F1CbF798D8E9a3cB19fDf2084C275f921"
}
}
},
"strategies": {
"0x420000000000000000000000000000000000000A": {
"address": {
"from": "0x83e654d42f437915bf849dE04c19AAd8C5e8c01E",
"to": "0xf043D74F1CbF798D8E9a3cB19fDf2084C275f921"
},
"baseStableBorrowRate": {
"from": "68000000000000000000000000",
"to": "57000000000000000000000000"
},
"variableRateSlope1": {
"from": "38000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserves altered

#### WETH ([0x4200000000000000000000000000000000000006](https://optimistic.etherscan.io/address/0x4200000000000000000000000000000000000006))

| description | value before | value after |
| --- | --- | --- |
| interestRateStrategy | [0x16F9bBeE415e519F184Fe1c09d653C6567e4eb2f](https://optimistic.etherscan.io/address/0x16F9bBeE415e519F184Fe1c09d653C6567e4eb2f) | [0x129F838C3339f64a026aeb334Ffd5d55C2E94935](https://optimistic.etherscan.io/address/0x129F838C3339f64a026aeb334Ffd5d55C2E94935) |
| variableRateSlope1 | 3 % | 2.7 % |
| baseStableBorrowRate | 6 % | 5.7 % |
| interestRate | ![before](/.assets/5a987481fcd21ac926a7663682a9aa4ac8703d67.svg) | ![after](/.assets/982b4fb6e2527921645edf26069ca5a944a85de5.svg) |

## Raw diff

```json
{
"reserves": {
"0x4200000000000000000000000000000000000006": {
"interestRateStrategy": {
"from": "0x16F9bBeE415e519F184Fe1c09d653C6567e4eb2f",
"to": "0x129F838C3339f64a026aeb334Ffd5d55C2E94935"
}
}
},
"strategies": {
"0x4200000000000000000000000000000000000006": {
"address": {
"from": "0x16F9bBeE415e519F184Fe1c09d653C6567e4eb2f",
"to": "0x129F838C3339f64a026aeb334Ffd5d55C2E94935"
},
"baseStableBorrowRate": {
"from": "60000000000000000000000000",
"to": "57000000000000000000000000"
},
"variableRateSlope1": {
"from": "30000000000000000000000000",
"to": "27000000000000000000000000"
}
}
}
}
```
Loading

0 comments on commit dff3f1c

Please sign in to comment.