Skip to content

Commit

Permalink
feat: add tokens for polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
leafyoung committed Jun 9, 2023
1 parent 418fa75 commit 8ddff26
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions credmark/cmf/types/data/fungible_token_data_polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,41 @@
"decimals": 18,
"name": "SushiToken (PoS)",
'address': '0x0b3F868E0BE5597D5DB7fEB59E1CADBb0fdDa50a',
},
'XSGD': {
"symbol": "XSGD",
"decimals": 6,
"name": "XSGD",
'address': '0xDC3326e71D45186F113a2F448984CA0e8D201995',
},
'BOB': {
"symbol": "BOB",
"decimals": 18,
"name": "BOB",
'address': '0xB0B195aEFA3650A6908f15CdaC7D92F8a5791B0B',
},
'SHIB': {
"symbol": "SHIB",
"decimals": 18,
"name": "SHIBA INU (PoS)",
'address': '0x6f8a06447Ff6FcF75d803135a7de15CE88C1d4ec',
},
'GNS': {
"symbol": "GNS",
"decimals": 18,
"name": "Gains Network",
'address': '0xE5417Af564e4bFDA1c483642db72007871397896'
},
'agEUR': {
"symbol": "agEUR",
"decimals": 18,
"name": "agEUR",
'address': '0xE0B52e49357Fd4DAf2c15e02058DCE6BC0057db4'
},
'CRV': {
"symbol": "CRV",
"decimals": 18,
"name": "CRV (PoS)",
'address': '0x172370d5Cd63279eFa6d502DAB29171933a610AF'
}
}
2 changes: 1 addition & 1 deletion tests/test_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def test_token_on_chains(self):
for chain_id, chain_tokens in FUNGIBLE_TOKEN_DATA_BY_SYMBOL.items():
if chain_id in [Network.BSC, Network.Polygon, Network.Mainnet]:
with context.fork(chain_id=chain_id) as cc:
print(f'Test tokens on chain: {chain_id} on {cc.block_number}')
print(f'Test tokens on chain: {chain_id} @ {cc.block_number}')
for token_n, (token_symbol, token_meta) in enumerate(chain_tokens.items()):
if chain_id == 1:
token = Token(token_symbol)
Expand Down

0 comments on commit 8ddff26

Please sign in to comment.