Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gauntlet v2 amm ir deprecation #8

Closed
wants to merge 11 commits into from
Closed
1 change: 1 addition & 0 deletions .assets/266cb15d48681d72fe262fbf1e9a82effed54078.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/7af3d32d5b53ea30044e549f0c9e403bbecdaaf1.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/7dc62027c00efdf4a27a7ad723f8f7ca99f89d77.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RPC_BASE=https://base.llamarpc.com
RPC_ZKEVM=https://zkevm-rpc.com
RPC_GNOSIS=https://rpc.ankr.com/gnosis
RPC_BNB=https://binance.llamarpc.com
RPC_SCROLL=https://rpc.scroll.io

# Etherscan api keys for verification & download utils
ETHERSCAN_API_KEY_MAINNET=
Expand All @@ -30,6 +31,7 @@ ETHERSCAN_API_KEY_BASE=
ETHERSCAN_API_KEY_ZKEVM=
ETHERSCAN_API_KEY_GNOSIS=
ETHERSCAN_API_KEY_BNB=
ETHERSCAN_API_KEY_SCROLL=

# Simulation/fork creation
TENDERLY_ACCESS_TOKEN=
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
## Reserve changes

### Reserve altered

#### WBTC ([0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599](https://etherscan.io/address/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599))

| description | value before | value after |
| --- | --- | --- |
| reserveFactor | 20 % | 99 % |


#### DAI ([0x6B175474E89094C44Da98b954EedeAC495271d0F](https://etherscan.io/address/0x6B175474E89094C44Da98b954EedeAC495271d0F))

| description | value before | value after |
| --- | --- | --- |
| reserveFactor | 10 % | 99 % |


#### USDC ([0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48](https://etherscan.io/address/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48))

| description | value before | value after |
| --- | --- | --- |
| reserveFactor | 10 % | 99 % |


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

| description | value before | value after |
| --- | --- | --- |
| reserveFactor | 10 % | 99 % |


#### USDT ([0xdAC17F958D2ee523a2206206994597C13D831ec7](https://etherscan.io/address/0xdAC17F958D2ee523a2206206994597C13D831ec7))

| description | value before | value after |
| --- | --- | --- |
| reserveFactor | 10 % | 99 % |


## Raw diff

```json
{
"reserves": {
"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599": {
"reserveFactor": {
"from": 2000,
"to": 9900
}
},
"0x6B175474E89094C44Da98b954EedeAC495271d0F": {
"reserveFactor": {
"from": 1000,
"to": 9900
}
},
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
"reserveFactor": {
"from": 1000,
"to": 9900
}
},
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": {
"reserveFactor": {
"from": 1000,
"to": 9900
}
},
"0xdAC17F958D2ee523a2206206994597C13D831ec7": {
"reserveFactor": {
"from": 1000,
"to": 9900
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
## Reserve changes

### Reserve altered

#### UNI ([0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984](https://etherscan.io/address/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984))

| description | value before | value after |
| --- | --- | --- |
| liquidationThreshold | 20 % | 14 % |


#### LINK ([0x514910771AF9Ca656af840dff83E8264EcF986CA](https://etherscan.io/address/0x514910771AF9Ca656af840dff83E8264EcF986CA))

| description | value before | value after |
| --- | --- | --- |
| liquidationThreshold | 74 % | 72 % |


#### MKR ([0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2](https://etherscan.io/address/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2))

| description | value before | value after |
| --- | --- | --- |
| liquidationThreshold | 18 % | 14 % |


#### ENS ([0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72](https://etherscan.io/address/0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72))

| description | value before | value after |
| --- | --- | --- |
| liquidationThreshold | 24 % | 0.05 % |


#### CRV ([0xD533a949740bb3306d119CC777fa900bA034cd52](https://etherscan.io/address/0xD533a949740bb3306d119CC777fa900bA034cd52))

| description | value before | value after |
| --- | --- | --- |
| liquidationThreshold | 18 % | 14 % |


#### ZRX ([0xE41d2489571d322189246DaFA5ebDe1F4699F498](https://etherscan.io/address/0xE41d2489571d322189246DaFA5ebDe1F4699F498))

| description | value before | value after |
| --- | --- | --- |
| liquidationThreshold | 12 % | 8 % |


## Raw diff

```json
{
"reserves": {
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984": {
"liquidationThreshold": {
"from": 2000,
"to": 1400
}
},
"0x514910771AF9Ca656af840dff83E8264EcF986CA": {
"liquidationThreshold": {
"from": 7400,
"to": 7200
}
},
"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2": {
"liquidationThreshold": {
"from": 1800,
"to": 1400
}
},
"0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72": {
"liquidationThreshold": {
"from": 2400,
"to": 5
}
},
"0xD533a949740bb3306d119CC777fa900bA034cd52": {
"liquidationThreshold": {
"from": 1800,
"to": 1400
}
},
"0xE41d2489571d322189246DaFA5ebDe1F4699F498": {
"liquidationThreshold": {
"from": 1200,
"to": 800
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
## Reserve changes

### Reserves added

#### PYUSD ([0x6c3ea9036406852006290770BEdFcAbA0e23A0e8](https://etherscan.io/address/0x6c3ea9036406852006290770BEdFcAbA0e23A0e8))

| description | value |
| --- | --- |
| decimals | 6 |
| isActive | true |
| isFrozen | false |
| supplyCap | 10,000,000 PYUSD |
| borrowCap | 9,000,000 PYUSD |
| debtCeiling | 0 $ |
| isSiloed | false |
| isFlashloanable | true |
| eModeCategory | 0 |
| oracle | [0x8f1dF6D7F2db73eECE86a18b4381F4707b918FB1](https://etherscan.io/address/0x8f1dF6D7F2db73eECE86a18b4381F4707b918FB1) |
| oracleDecimals | 8 |
| oracleDescription | PYUSD / USD |
| oracleLatestAnswer | 0.99946 |
| usageAsCollateralEnabled | false |
| ltv | 0 % |
| liquidationThreshold | 0 % |
| liquidationBonus | 0 % |
| liquidationProtocolFee | 0 % |
| reserveFactor | 20 % |
| aToken | [0x0C0d01AbF3e6aDfcA0989eBbA9d6e85dD58EaB1E](https://etherscan.io/address/0x0C0d01AbF3e6aDfcA0989eBbA9d6e85dD58EaB1E) |
| aTokenImpl | [0x7EfFD7b47Bfd17e52fB7559d3f924201b9DbfF3d](https://etherscan.io/address/0x7EfFD7b47Bfd17e52fB7559d3f924201b9DbfF3d) |
| variableDebtToken | [0x57B67e4DE077085Fd0AF2174e9c14871BE664546](https://etherscan.io/address/0x57B67e4DE077085Fd0AF2174e9c14871BE664546) |
| variableDebtTokenImpl | [0xaC725CB59D16C81061BDeA61041a8A5e73DA9EC6](https://etherscan.io/address/0xaC725CB59D16C81061BDeA61041a8A5e73DA9EC6) |
| stableDebtToken | [0x5B393DB4c72B1Bd82CE2834F6485d61b137Bc7aC](https://etherscan.io/address/0x5B393DB4c72B1Bd82CE2834F6485d61b137Bc7aC) |
| stableDebtTokenImpl | [0x15C5620dfFaC7c7366EED66C20Ad222DDbB1eD57](https://etherscan.io/address/0x15C5620dfFaC7c7366EED66C20Ad222DDbB1eD57) |
| borrowingEnabled | true |
| stableBorrowRateEnabled | false |
| isBorrowableInIsolation | false |
| interestRateStrategy | [0xAC4f9019608f3A359Ba6a576DC4deC9561D2e514](https://etherscan.io/address/0xAC4f9019608f3A359Ba6a576DC4deC9561D2e514) |
| aTokenName | Aave Ethereum PYUSD |
| aTokenSymbol | aEthPYUSD |
| isPaused | false |
| stableDebtTokenName | Aave Ethereum Stable Debt PYUSD |
| stableDebtTokenSymbol | stableDebtEthPYUSD |
| variableDebtTokenName | Aave Ethereum Variable Debt PYUSD |
| variableDebtTokenSymbol | variableDebtEthPYUSD |
| optimalUsageRatio | 80 % |
| maxExcessUsageRatio | 20 % |
| baseVariableBorrowRate | 0 % |
| variableRateSlope1 | 6 % |
| variableRateSlope2 | 80 % |
| baseStableBorrowRate | 9 % |
| stableRateSlope1 | 13 % |
| stableRateSlope2 | 300 % |
| optimalStableToTotalDebtRatio | 20 % |
| maxExcessStableToTotalDebtRatio | 80 % |
| interestRate | ![ir](/.assets/7dc62027c00efdf4a27a7ad723f8f7ca99f89d77.svg) |


## Raw diff

```json
{
"reserves": {
"0x6c3ea9036406852006290770BEdFcAbA0e23A0e8": {
"from": null,
"to": {
"aToken": "0x0C0d01AbF3e6aDfcA0989eBbA9d6e85dD58EaB1E",
"aTokenImpl": "0x7EfFD7b47Bfd17e52fB7559d3f924201b9DbfF3d",
"aTokenName": "Aave Ethereum PYUSD",
"aTokenSymbol": "aEthPYUSD",
"borrowCap": 9000000,
"borrowingEnabled": true,
"debtCeiling": 0,
"decimals": 6,
"eModeCategory": 0,
"interestRateStrategy": "0xAC4f9019608f3A359Ba6a576DC4deC9561D2e514",
"isActive": true,
"isBorrowableInIsolation": false,
"isFlashloanable": true,
"isFrozen": false,
"isPaused": false,
"isSiloed": false,
"liquidationBonus": 0,
"liquidationProtocolFee": 0,
"liquidationThreshold": 0,
"ltv": 0,
"oracle": "0x8f1dF6D7F2db73eECE86a18b4381F4707b918FB1",
"oracleDecimals": 8,
"oracleDescription": "PYUSD / USD",
"oracleLatestAnswer": 99946000,
"reserveFactor": 2000,
"stableBorrowRateEnabled": false,
"stableDebtToken": "0x5B393DB4c72B1Bd82CE2834F6485d61b137Bc7aC",
"stableDebtTokenImpl": "0x15C5620dfFaC7c7366EED66C20Ad222DDbB1eD57",
"stableDebtTokenName": "Aave Ethereum Stable Debt PYUSD",
"stableDebtTokenSymbol": "stableDebtEthPYUSD",
"supplyCap": 10000000,
"symbol": "PYUSD",
"underlying": "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8",
"usageAsCollateralEnabled": false,
"variableDebtToken": "0x57B67e4DE077085Fd0AF2174e9c14871BE664546",
"variableDebtTokenImpl": "0xaC725CB59D16C81061BDeA61041a8A5e73DA9EC6",
"variableDebtTokenName": "Aave Ethereum Variable Debt PYUSD",
"variableDebtTokenSymbol": "variableDebtEthPYUSD"
}
}
},
"strategies": {
"0xAC4f9019608f3A359Ba6a576DC4deC9561D2e514": {
"from": null,
"to": {
"baseStableBorrowRate": "90000000000000000000000000",
"baseVariableBorrowRate": 0,
"maxExcessStableToTotalDebtRatio": "800000000000000000000000000",
"maxExcessUsageRatio": "200000000000000000000000000",
"optimalStableToTotalDebtRatio": "200000000000000000000000000",
"optimalUsageRatio": "800000000000000000000000000",
"stableRateSlope1": "130000000000000000000000000",
"stableRateSlope2": "3000000000000000000000000000",
"variableRateSlope1": "60000000000000000000000000",
"variableRateSlope2": "800000000000000000000000000"
}
}
}
}
```
Loading