Skip to content

Commit d517730

Browse files
authored
Merge pull request #1734 from curvefi/fix/disable-monad-eth-converter
fix: put eth converter pool on monad in withdraw only due to misconfiguration
2 parents 9f75c0e + 685b72a commit d517730

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

apps/main/src/dex/hooks/usePoolAlert.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,18 @@ const usePoolAlert = (poolData?: PoolData | PoolDataCache) => {
207207
),
208208
})
209209

210+
// Pool creator configured a price feed instead of redemption rates for stored_rates, leading to users losing funds when swapping.
211+
const monadEthConverterAlert = (): PoolAlert => ({
212+
alertType: 'danger',
213+
isDisableDeposit: true,
214+
isDisableSwap: true,
215+
message: (
216+
<MessageWrapper>
217+
<div>This pool is in withdraw only mode, as it has been configured incorrectly.</div>
218+
</MessageWrapper>
219+
),
220+
})
221+
210222
// prettier-ignore
211223
const alerts: { [poolAddress: string]: PoolAlert } = {
212224
// ethereum
@@ -235,6 +247,9 @@ const usePoolAlert = (poolData?: PoolData | PoolDataCache) => {
235247

236248
// avalanche
237249
'0xb755b949c126c04e0348dd881a5cf55d424742b2': atricryptoAlert(),
250+
251+
// monad
252+
'0x2fd13b49f970e8c6d89283056c1c6281214b7eb6': monadEthConverterAlert()
238253
}
239254

240255
if (poolAddress) {

0 commit comments

Comments
 (0)