Skip to content

[Frontend] Repayment XDR sends only a tenth of the intended amount #1368

Description

@ogazboiz

Questions or want to claim this? Say hi in the community chat: https://t.me/+DOylgFv1jyJlNzM0

Description

The repayment amount is divided by ten when building the XDR, so a borrower can clear a loan while actually transferring only ten percent.

Component: Frontend
Location: frontend/src/app/utils/soroban.ts -> buildUnsignedRepaymentXdr
Severity: Critical

How to reproduce / find it

Build a repayment for a known amount and inspect the on-chain value.

Expected behavior

The full repayment amount should be sent.

Notes for contributors

This is a logic/behavior defect, not a compile error. Please open one PR per fix that references this issue and names the file and function above.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Stellar WaveIssues in the Stellar wave programbugSomething isn't workingcriticalHigh-impact / hard issuefrontendIssues related to frontend developmentsecuritySecurity related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions