Skip to content

Commit

Permalink
add USDC display and open fee switcher (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAPtheorem authored May 10, 2022
1 parent 800e5d5 commit 9010440
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ function FeeSwitcher() {
return null
}

if (network === 'mainnet' && monsterNumber < 1) {
return null
}
// enable fee switcher for everyone
// if (network === 'mainnet' && monsterNumber < 1) {
// return null
// }

return (
<S.FeeSwitcherWrapper>
Expand Down
2 changes: 2 additions & 0 deletions packages/boba/gateway/src/containers/wallet/token/Token.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ function TokenPage() {
return 'boba-network'
} else if(i.symbolL1 === 'OLO') {
return 'oolongswap'
} else if(i.symbolL1 === 'USDC') {
return 'usd-coin'
} else {
return i.symbolL1.toLowerCase()
}
Expand Down
2 changes: 2 additions & 0 deletions packages/boba/gateway/src/util/amountConvert.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export function amountToUsd(amount, lookupPrice, token) {
return amount * lookupPrice['oolongswap'].usd
} else if (token.symbol === 'OMG' && !!lookupPrice[ 'omisego' ]) {
return amount * lookupPrice['omisego'].usd
} else if (token.symbol === 'USDC' && !!lookupPrice[ 'usd-coin' ]) {
return amount * lookupPrice['usd-coin'].usd
} else if (!!lookupPrice[ token.symbol.toLowerCase() ]) {
return amount * lookupPrice[token.symbol.toLowerCase()].usd
} else {
Expand Down

0 comments on commit 9010440

Please sign in to comment.