Commit dbd1267
committed
fix(direct-send): pass token balance to verified fiat calculator
The direct send flow was not passing the token balance to
verifiedFiatCalculator.compute(), so the calculator's balance
capping logic never fired. This caused submit intent failures
when a user tried to send back a small received amount in a
different currency (e.g. 0.01 CAD displayed as 0.01 USD when
the actual USD value was ~0.007).
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent e7119fe commit dbd1267
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- apps/flipcash/features/direct-send/src/main/kotlin/com/flipcash/app/directsend/internal
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
0 commit comments