-
Notifications
You must be signed in to change notification settings - Fork 191
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: Add SwapLite
util functions
#1648
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
4fb8ad3
to
3002cc4
Compare
FundSwap
util functionsSwapLite
util functions
to.setAmountUSD(''), | ||
]); | ||
}, [from, fromETH, fromUSDC, to]); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this may be more flexible accepting an array of SwapUnits, it seems like some of this logic could be shared between swap and lite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
created a ticket to refactor later
What changed? Why?
useResetSwapLiteInputs
: resets to token, from token, USDC, and ETH balancesgetSwapLiteQuote
: formats swap quote valuesuseSwapLiteTokens
: returns token information (balance, etc) - for context, USDC and ETH will always be provided as swap options. users then have the ability to provide one morefrom
token to the componentNotes to reviewers
How has it been tested?