Skip to content

add oneInch v6 swap api #12

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JohnnyGoodpick
Copy link
Collaborator

No description provided.

@JohnnyGoodpick JohnnyGoodpick self-assigned this Oct 29, 2024
"cors": "^2.8.5",
"dotenv": "^16.0.0",
"express": "^4.18.1",
"express": "^4.21.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

was it needed to update the dependencies ?

return new Ok(
const quoteData: OneInchQuoteResponse = r.data;

// logger.debug('OneInch quote response', r.data);
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unnecessary comments

chainId,
);

// logger.debug('normalizedResponse', normalizedResponse);
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unncessary comments

);
sellTokenAmount,
);
// logger.debug('normalizedResponse', normalizedResponse);
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unncessary comments

);

return new Ok(
// logger.debug(`OneInch swap response ${JSON.stringify(r.data)}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unncessary comments

'0x111111125421ca6dc452d289314280a0f8842a65',
[SupportedChainId.OPTIMISM]: '0x111111125421ca6dc452d289314280a0f8842a65',
[SupportedChainId.MAINNET]: '0x111111125421ca6dc452d289314280a0f8842a65',
[SupportedChainId.BASE]: '0x111111125421ca6dc452d289314280a0f8842a65',
Copy link
Collaborator

Choose a reason for hiding this comment

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

do their contract have the same address on all chains ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes

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.

2 participants