Skip to content

Commit

Permalink
Merge pull request #115 from HaloDAO/develop
Browse files Browse the repository at this point in the history
Merge Develop to Master
  • Loading branch information
tracyarciaga authored Oct 27, 2021
2 parents a24aa7b + bb174e3 commit a6b27c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 11 additions & 8 deletions src/constants/tokenLists/halo-tokenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ethers } from 'ethers'
import { ChainAddressMap, USDC, ZERO_ADDRESS } from '../../constants'

// Supported token symbols
// Adding new pairs step 1: Add tokensymbol enum
export enum TokenSymbol {
USDC = 'USDC',
EURS = 'EURS',
Expand Down Expand Up @@ -34,12 +35,13 @@ export const haloUSDC: { [chainId in ChainId]?: Token } = {

// Token Lists
// Add tokens here to support, divided into different networks
// Adding new pairs step 2: Add token in tokenList
const mainNetTokenList: Token[] = [
USDC,
new Token(ChainId.MAINNET, '0x70e8dE73cE538DA2bEEd35d14187F6959a8ecA96', 6, 'XSGD', 'Xfers SGD')
// new Token(ChainId.MAINNET, '0x00000100F2A2bd000715001920eB70D229700085', 18, 'TCAD', 'True CAD'),
// new Token(ChainId.MAINNET, '0x00006100F7090010005F1bd7aE6122c3C2CF0090', 18, 'TAUD', 'True AUD'),
// new Token(ChainId.MAINNET, '0x00000000441378008EA67F4284A57932B1c000a5', 18, 'TGBP', 'True GBP'),
new Token(ChainId.MAINNET, '0x70e8dE73cE538DA2bEEd35d14187F6959a8ecA96', 6, 'XSGD', 'Xfers SGD'),
new Token(ChainId.MAINNET, '0x00000100F2A2bd000715001920eB70D229700085', 18, 'TCAD', 'True CAD'),
new Token(ChainId.MAINNET, '0x00006100F7090010005F1bd7aE6122c3C2CF0090', 18, 'TAUD', 'True AUD'),
new Token(ChainId.MAINNET, '0x00000000441378008EA67F4284A57932B1c000a5', 18, 'TGBP', 'True GBP')
// new Token(ChainId.MAINNET, '0x0000000000085d4780B73119b644AE5ecd22b376', 18, 'TUSD', 'True USD')
]

Expand All @@ -52,10 +54,10 @@ const kovanTokenList: Token[] = [

const polygonTokenList: Token[] = [
haloUSDC[ChainId.MATIC] as Token,
new Token(ChainId.MATIC, '0x769434dcA303597C8fc4997Bf3DAB233e961Eda2', 6, 'XSGD', 'Xfers SGD')
// new Token(ChainId.MATIC, '0xe4F7761b541668f88d04fe9F2E9DF10CA613aEf7', 18, 'TAUD', 'Wrapped True AUD'),
// new Token(ChainId.MATIC, '0x6d3cC56DFC016151eE2613BdDe0e03Af9ba885CC', 18, 'TCAD', 'Wrapped True CAD'),
// new Token(ChainId.MATIC, '0x81A123f10C78216d32F8655eb1A88B5E9A3e9f2F', 18, 'TGBP', 'Wrapped True GBP'),
new Token(ChainId.MATIC, '0x769434dcA303597C8fc4997Bf3DAB233e961Eda2', 6, 'XSGD', 'Xfers SGD'),
new Token(ChainId.MATIC, '0xe4F7761b541668f88d04fe9F2E9DF10CA613aEf7', 18, 'TAUD', 'Wrapped True AUD'),
new Token(ChainId.MATIC, '0x6d3cC56DFC016151eE2613BdDe0e03Af9ba885CC', 18, 'TCAD', 'Wrapped True CAD'),
new Token(ChainId.MATIC, '0x81A123f10C78216d32F8655eb1A88B5E9A3e9f2F', 18, 'TGBP', 'Wrapped True GBP')
// new Token(ChainId.MATIC, '0x2e1AD108fF1D8C782fcBbB89AAd783aC49586756', 18, 'TUSD', 'Wrapped True USD')
]

Expand All @@ -68,6 +70,7 @@ export const haloTokenList: { [chainId in ChainId]?: Token[] } = {

// Assimilators
// Add assimilators here to support. These are arranged per base currency per network
// Adding new pairs step 3: Add assimilator
const mainNetAssimilators: AssimilatorAddressMap = {
[TokenSymbol.USDC]: ZERO_ADDRESS,
[TokenSymbol.EURS]: ZERO_ADDRESS,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Tailwind/Swap/SwapPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const SwapPanel = () => {
<CurrencyInput
currency={fromCurrency}
value={fromInputValue}
canSelectToken={false}
canSelectToken={true}
didChangeValue={async val => {
if (parseFloat(fromAmountBalance) >= parseFloat(val)) {
setButtonState(SwapButtonState.Swap)
Expand Down Expand Up @@ -385,7 +385,7 @@ const SwapPanel = () => {
<CurrencyInput
currency={toCurrency}
value={toInputValue}
canSelectToken={false}
canSelectToken={true}
didChangeValue={val => {
if (approveState === ApproveButtonState.Approved) {
setButtonState(SwapButtonState.Swap)
Expand Down

0 comments on commit a6b27c0

Please sign in to comment.