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

Feat/pool fees #10

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Feat/pool fees #10

wants to merge 17 commits into from

Conversation

olegkron
Copy link
Member

Description

Concise description of proposed changes, We recommend using screenshots and videos for better description

Additional Information

Related Issues

Closes #{issue number}

Note: If your changes are small and straightforward, you may skip the creation of an issue beforehand and remove this section. However, for medium-to-large changes, it is recommended to have an open issue for discussion and approval prior to submitting a pull request.

Your ENS/address:

Copy link
Member Author

@olegkron olegkron left a comment

Choose a reason for hiding this comment

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

Hi @patrick-concero, There aren't many changes in the DexSwap as far as I can see, pls let me know if I'm not looking at the right files

function getWrappedNative() internal view returns (address _wrappedAddress) {
uint256 chainId = block.chainid;

if (chainId == CHAIN_ID_AVALANCHE) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Hi! @patrick-concero, why are we using CHAIN_IDs here if we already have chain selectors? Let's move the logic to chain selectors to have less constant variables and less things to keep in mind.

Copy link
Contributor

Choose a reason for hiding this comment

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

Because chain selectors are related to bridge functionalities and are not sent through _swap functions. Also, the chainSelector sent through the swapAndBridge function it's related to destination, not source. It can't be used as we need to get a source wrapper in this case.

If I am missing something, please let me know.

Copy link

openzeppelin-code bot commented Jul 18, 2024

Feat/pool fees

Generated at commit: 8bf4c9e2809fe6d0c3d89897d453f0a33c028dfd

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
1
0
9
36
48
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

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.

3 participants