Skip to content

Conversation

@alfetopito
Copy link
Collaborator

@alfetopito alfetopito commented May 24, 2024

Summary

  • Refactored the script that was used to map Omnibridge from mainnet to Gnosis chain to also map mainnet to Arbitrum one
  • Ran the scripts and added the resulting token lists
  • Updated Coingecko.json
  • Updated all Permit info after with the bridge lists

To test

  1. Get the raw github file url for the new token lists
  2. Add it to cowswap
  • List should be valid
  • All tokens should be tradable, although I don't expect anyone to check the 100+ tokens.

@alfetopito alfetopito self-assigned this May 24, 2024
@alfetopito alfetopito force-pushed the feat/arb1-uniswap-mapped-list branch from 76633ca to ca0fac8 Compare May 24, 2024 15:53
@alfetopito alfetopito marked this pull request as ready for review May 24, 2024 16:02
@alfetopito alfetopito requested a review from a team May 24, 2024 16:31
Comment on lines +214 to +216
// Checks whether there's at least 10 units of given token at destination address
// This also filters out addresses that are not deployed, since the response in this case is `0x`
const isValidTokenAddress = +res[1] > 10
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how we check whether the token exists at destination

@alfetopito alfetopito merged commit 65977e6 into main May 28, 2024
@alfetopito alfetopito deleted the feat/arb1-uniswap-mapped-list branch May 28, 2024 09:58
@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2024
)
.then((results) => parseBridgedAddressesResults(results, fetchBridgedAddressesCalls, tokensToReplace, chainId))

const tokens = await multicall.callStatic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aha! nice you check not only code, but you checked for the total supply which one of the few mandatory in ERC20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants