You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
Currently there's a preconception that our markets will be ETH/OVL adjacent, but this won't necessarily be true in the future.
In the future, the decimals of the liquidity token may not always have 18 decimals.
Therefore, we should put the base liquidity token's decimals into an immutable variable for the purposes of the liquidity depth computation so that the incorrect number of decimals will not wreak havoc on the open interest caps.
This will take a moment of thought because to test this correctly we should deploy real erc20 contracts with the relevant decimals, but it does not look like brownie can deploy contracts at arbitrary addresses, even locally.
There is currently a calculation that depends on the ordering of addresses that is right now really just crossing its fingers as to whether the ovl/weth ordering respects the same ordering as our price feed for axs/weth.
Further reflection on how the market liquidity token not have 18 decimals could be important for Overlay:
Consider the possibility that once OVL is live and thriving, a project wants to enter a partnership that involves a new OVL/ERC20 market. For instance, when OVL is multi chain, maybe a governance proposal is introduced by a new chain that wants to create markets on their chains with OVL, and they want to heavily subsidize pools on their network with their native token.
Nothing's to say this native token will have 18 decimals, could be 6.
It is better to offload all external context than to demand more awareness of the deployment when it comes around.
As much as possible, it should be programmed to find and set the appropriate environment variables.
mesozoic-technology
changed the title
Market liquidity decimals may not have 18 decimals, and ordering of addresses must be totally handled in the tests
Market liquidity decimals may not have 18 decimals, and ordering of addresses must be better handled in the tests
Jan 9, 2022
mesozoic-technology
changed the title
Market liquidity decimals may not have 18 decimals, and ordering of addresses must be better handled in the tests
Market liquidity decimals may not have 18 decimals, and ordering of addresses relative to price mocks must be better handled in the tests
Jan 9, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently there's a preconception that our markets will be ETH/OVL adjacent, but this won't necessarily be true in the future.
In the future, the decimals of the liquidity token may not always have 18 decimals.
Therefore, we should put the base liquidity token's decimals into an immutable variable for the purposes of the liquidity depth computation so that the incorrect number of decimals will not wreak havoc on the open interest caps.
This will take a moment of thought because to test this correctly we should deploy real erc20 contracts with the relevant decimals, but it does not look like brownie can deploy contracts at arbitrary addresses, even locally.
There is currently a calculation that depends on the ordering of addresses that is right now really just crossing its fingers as to whether the ovl/weth ordering respects the same ordering as our price feed for axs/weth.
Possible solutions are to
I'd favor solution #2 the most there.
The text was updated successfully, but these errors were encountered: