Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFT metadata: allow token0 numerator for certain pair ratios #60

Merged
merged 15 commits into from Apr 2, 2021

Conversation

ewilz
Copy link
Member

@ewilz ewilz commented Mar 31, 2021

No description provided.

@ewilz ewilz changed the title NFT metadata: allow token0 numerator for certain pairs NFT metadata: allow token0 numerator for certain pair ratios Mar 31, 2021
@ewilz ewilz mentioned this pull request Mar 31, 2021
4 tasks

function initialize(TokenRatioOrderPriority[] memory tokens) public initializer() {
for (uint256 i = 0; i < tokens.length; i++) {
tokenRatioPriority[tokens[i].token] = tokens[i].priority;
Copy link
Member Author

Choose a reason for hiding this comment

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

maybe should trigger an event for each token to have a record of which tokens were recorded...(helpful for making changes in the future)

Copy link
Contributor

@moodysalem moodysalem left a comment

Choose a reason for hiding this comment

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

lgtm, just gotta find out why the gas snapshots changed

@@ -39,6 +55,7 @@ contract NonfungibleTokenPositionDescriptor is INonfungibleTokenPositionDescript
token1Symbol: SafeERC20Namer.tokenSymbol(token1),
token0Decimals: IERC20Metadata(token0).decimals(),
token1Decimals: IERC20Metadata(token1).decimals(),
hasToken0RatioNumerator: hasToken0RatioNumerator(token0, token1),
Copy link
Contributor

Choose a reason for hiding this comment

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

would it make more sense to name this something like flipRatio?


exports[`SwapRouter gas tests #exactInput WETH9 -> 0 1`] = `111324`;
exports[`SwapRouter gas tests #exactInput WETH9 -> 0 1`] = `111179`;
Copy link
Contributor

Choose a reason for hiding this comment

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

why did this happen?

Copy link
Member Author

Choose a reason for hiding this comment

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

mm..not sure..this file changed a bit in my last PR too. Happened on merge

@ewilz ewilz merged commit 5c358d8 into main Apr 2, 2021
@ewilz ewilz deleted the nft_token_numerator branch April 2, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants