Skip to content

Commit

Permalink
fix: add more stablecoins in fees logic (#5192)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Dec 12, 2024
1 parent aac2c7b commit 79afa5c
Showing 1 changed file with 55 additions and 1 deletion.
56 changes: 55 additions & 1 deletion libs/common-const/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,51 @@ export const GNO_MAINNET = new TokenWithLogo(
'Gnosis',
)

const FRAX_MAINNET = new TokenWithLogo(
'https://assets.coingecko.com/coins/images/13422/thumb/frax_logo.png?1608476506',
SupportedChainId.MAINNET,
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
18,
'FRAX',
'Frax',
)

const GUSD_MAINNET = new TokenWithLogo(
'https://assets.coingecko.com/coins/images/5992/thumb/gemini-dollar-gusd.png?1536745278',
SupportedChainId.MAINNET,
'0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd',
2,
'GUSD',
'Gemini Dollar',
)

const LUSD_MAINNET = new TokenWithLogo(
'https://assets.coingecko.com/coins/images/14666/thumb/Group_3.png?1617631327',
SupportedChainId.MAINNET,
'5f98805A4E8be255a32880FDeC7F6728C6568bA0',
18,
'LUSD',
'Liquity USD',
)

const PYUSD_MAINNET = new TokenWithLogo(
'https://assets.coingecko.com/coins/images/31212/large/PYUSD_Logo_%282%29.png?1691458314',
SupportedChainId.MAINNET,
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
6,
'PYUSD',
'PayPal USD',
)

const sUSD_MAINNET = new TokenWithLogo(
'https://assets.coingecko.com/coins/images/5013/thumb/sUSD.png?1616150765',
SupportedChainId.MAINNET,
'0x57Ab1ec28D129707052df4dF418D58a2D46d5f51',
18,
'sUSD',
'Synth sUSD',
)

// Gnosis chain
export const XDAI_SYMBOL = 'XDAI'
export const XDAI_NAME = 'xDai'
Expand Down Expand Up @@ -455,7 +500,16 @@ const SDAI_GNOSIS_CHAIN_ADDRESS = '0xaf204776c7245bf4147c2612bf6e5972ee483701'
const GBPE_GNOSIS_CHAIN_ADDRESS = '0x5cb9073902f2035222b9749f8fb0c9bfe5527108'

// Not used for fees
const MAINNET_STABLECOINS = [USDC_MAINNET.address, USDT.address, DAI.address].map((t) => t.toLowerCase())
const MAINNET_STABLECOINS = [
USDC_MAINNET.address,
USDT.address,
DAI.address,
FRAX_MAINNET.address,
GUSD_MAINNET.address,
LUSD_MAINNET.address,
PYUSD_MAINNET.address,
sUSD_MAINNET.address,
].map((t) => t.toLowerCase())

// NOTE: whenever this list is updated, make sure to update the docs section regarding the volume fees
// https://github.com/cowprotocol/docs/blob/main/docs/governance/fees/fees.md?plain=1#L40
Expand Down

0 comments on commit 79afa5c

Please sign in to comment.