There are a number of hardcoded values both within the SDK and the frontend that should be turned into SDK constants.
DEFAULT_SLIPPAGE is the best example, but there are also a couple of URLs. We have to create a new, commons constants file and carefully add them. Then use them both within the SDK and the frontend.
Chain usage is not consistent. We need to remove most of the code from /frontend/helpers/chain and use the SDK instead.
This means adding a block-explorers.ts constants file and a corresponding property to the Chain class
It also means refactor the handling of both hex string and int ids for chains. We need to always use the ChainId type.
There are a number of hardcoded values both within the SDK and the frontend that should be turned into SDK constants.
DEFAULT_SLIPPAGE
is the best example, but there are also a couple of URLs. We have to create a new,commons
constants file and carefully add them. Then use them both within the SDK and the frontend./frontend/helpers/chain
and use the SDK instead.block-explorers.ts
constants file and a corresponding property to theChain
classChainId
type.