Skip to content

Commit e861654

Browse files
committed
fix peg price in stable plugins
1 parent e66dc16 commit e861654

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

contracts/plugins/assets/aerodrome/AerodromeStableCollateral.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ contract AerodromeStableCollateral is AerodromeVolatileCollateral {
7777
}
7878
assert(low <= high); // not obviously true just by inspection
7979

80-
// {target/ref} = {UoA/ref} = {UoA/tok} / ({ref/tok}
81-
// {target/ref} and {UoA/ref} are the same since target == UoA
82-
pegPrice = ((low + high) / 2).div(refPerTok());
80+
pegPrice = 0;
8381
}
8482

8583
// === Internal ===

contracts/plugins/assets/aerodrome/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Aerodrome Pools do not appreciate in value over time, so `refPerTok()` will be c
4040

4141
## Implementation
4242

43-
| `tok` | `ref` | `target` | `UoA` |
44-
| :------------------: | :---------------: | :----------------: | :---: |
45-
| Aero Staking Wrapper | LP token /w shift | USD (Stable) | USD |
46-
| Aero Staking Wrapper | LP token /w shift | cpAMM (Volatile) | USD |
43+
| `tok` | `ref` | `target` | `UoA` |
44+
| :------------------: | :---------------: | :--------------: | :---: |
45+
| Aero Staking Wrapper | LP token /w shift | USD (Stable) | USD |
46+
| Aero Staking Wrapper | LP token /w shift | cpAMM (Volatile) | USD |

0 commit comments

Comments
 (0)