Skip to content
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

Merged
merged 10 commits into from
Sep 17, 2024
Merged

Conversation

none00y
Copy link
Collaborator

@none00y none00y commented Sep 11, 2024

Changes

  • add change liquidity entrypoint

@none00y none00y self-assigned this Sep 11, 2024
}

#[ink_e2e::test]
async fn test_change_liquidity_no_position(mut client: ink_e2e::Client<C, E>) -> E2EResult<()> {
Copy link
Member

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?

async changeLiquidity(
account: IKeyringPair,
index: bigint,
newLiquidity: Liquidity,
Copy link
Member

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

@none00y none00y merged commit b187a8c into master Sep 17, 2024
3 checks passed
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.

3 participants