-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: ton v2 swap #11169
feat: ton v2 swap #11169
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
4e338ed
to
e7d952b
Compare
e7d952b
to
d98ff2c
Compare
d98ff2c
to
9d749a9
Compare
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat is environment variable access?Package accesses environment variables, which may be a sign of credential stuffing or data theft. Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to. Take a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with
|
9d749a9
to
5538a6c
Compare
d6c1b6d
to
5854820
Compare
5854820
to
3f5957f
Compare
3f5957f
to
92caf58
Compare
PR-Codex overview
This PR primarily focuses on refactoring and enhancing the
ton-v2-sdk
and related components, improving modularity and functionality while ensuring better integration with@pancakeswap
libraries.Detailed summary
@pancakeswap/routing-sdk-addon-ton
to@pancakeswap/routing-sdk-addon-ton-v2
.packages/ton-v2-sdk/src/index.ts
forToken
,Native
, andCurrencyAmount
.getOutputAmount
andgetInputAmount
utility functions for token swaps.createTonPool
function to utilize new utility functions.CurrencyAmount
class with methods for arithmetic operations.AgnosticNativeCurrency
class for native currency representation.vitest
.ton-v2-sdk
instead of the old routing SDK addon.