Skip to content

fix: correct apply_delta_to_u128 signature to take &i128 (closes #407) - #483

Merged
abayomicornelius merged 1 commit into
SO4-Markets:mainfrom
Obiajulu-gif:fix/issue-407-increase-position-type-error
Jul 26, 2026
Merged

fix: correct apply_delta_to_u128 signature to take &i128 (closes #407)#483
abayomicornelius merged 1 commit into
SO4-Markets:mainfrom
Obiajulu-gif:fix/issue-407-increase-position-type-error

Conversation

@Obiajulu-gif

@Obiajulu-gif Obiajulu-gif commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Closes #407

Summary

Changed the \IDataStore::apply_delta_to_u128\ trait declaration in \libs/increase_position_utils/src/lib.rs\ from \delta: i128\ (owned) to \delta: &i128\ (reference), matching the Soroban client convention and all existing call sites in the same file.

Problem

The trait declared \delta: i128\ while every call site passes references (&fee_tokens, &net_collateral). This mismatch could cause compilation errors depending on Soroban SDK version and client generation behavior.

Fix

Changed the trait parameter to \delta: &i128\ to match the convention used by all other call sites.

…Markets#407)

The IDataStore trait declared delta: i128 (owned) while every call site
in the same file passes a reference (&fee_tokens, &net_collateral).
Changed the trait declaration to delta: &i128 to match the Soroban client
convention and all existing call sites.
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Obiajulu-gif Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@abayomicornelius
abayomicornelius merged commit 81f7a1b into SO4-Markets:main Jul 26, 2026
1 check failed
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.

increase_position_utils: type error in increase_position blocks compilation of the position-open path

2 participants