Update programs/amm/src/new_definition.rs

Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
This commit is contained in:
jonesmarvin8 2026-01-26 15:15:04 -05:00 committed by GitHub
parent 7a395d07c4
commit 3205e69e11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,8 +16,8 @@ pub fn new_definition(
user_holding_a: AccountWithMetadata,
user_holding_b: AccountWithMetadata,
user_holding_lp: AccountWithMetadata,
token_a_amount: u128,
token_b_amount: u128,
token_a_amount: NonZeroU128,
token_b_amount: NonZeroU128,
amm_program_id: ProgramId,
) -> (Vec<AccountPostState>, Vec<ChainedCall>) {
// Prevents pool constant coefficient (k) from being 0.