-
Notifications
You must be signed in to change notification settings - Fork 68
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
[WIP] Shadow Exchange V3 integration #36
base: main
Are you sure you want to change the base?
Conversation
projects/shadow/tools.ts
Outdated
name: 'exactInputSingle', | ||
description: | ||
'Swap a specific amount of token A for token B, ensuring a minimum amount of token B is received. Optionally, send the output to another recipient.', | ||
required: ['chainName', 'account', 'tokenIn', 'tokenOut', 'amountIn'], |
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.
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.
Be aware that if user not provide info that it will be null in your function
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.
thanks, updated all optional args at 7c54fa2
{ | ||
name: 'slippageTolerance', | ||
type: 'number', | ||
description: 'Slippage tolerance in percentage (e.g., 5.0).', |
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.
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.
using similar logic at 7c54fa2
amountA: string; | ||
amountB: string; | ||
tokenId?: number; | ||
slippageTolerance?: number; |
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.
watch comment in tools file. This problem about optional args through all your code
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.
fixed, updated all optional args at 7c54fa2
export interface Props { | ||
chainName: string; | ||
account: Address; | ||
tokenA: Address; |
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.
Suggest tokenA > tokenA_Address
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.
updated at b7ff06f
Pull Requests are only allowed to modify files in the
/projects
directory.Any changes outside of this directory will be rejected automatically.
This PR is work in progress (WIP)