-
Notifications
You must be signed in to change notification settings - Fork 1
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
add change liquidity entrypoint #296
Conversation
} | ||
|
||
#[ink_e2e::test] | ||
async fn test_change_liquidity_no_position(mut client: ink_e2e::Client<C, E>) -> E2EResult<()> { |
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.
Is there a test for insufficient tokens to cover the liquidity change in the position?
sdk/src/invariant.ts
Outdated
async changeLiquidity( | ||
account: IKeyringPair, | ||
index: bigint, | ||
newLiquidity: Liquidity, |
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.
deltaLiquidity
and depositDirection = DEPOSIT | WITHDRAW
suit better IMO
Changes