Skip to content

Commit

Permalink
fix: 🐛 Fix APR display value
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Jul 16, 2024
1 parent 48efead commit f5d747d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ class FarmLockDepositFormSheetState
entry.key,
),
level: entry.key,
aprEstimation: farmLockDeposit
.farmLock!.stats[entry.key]?.aprEstimation ??
0,
aprEstimation: (farmLockDeposit.farmLock!
.stats[entry.key]?.aprEstimation ??
0) *
100,
);
}).toList(),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class _FarmLockDepositSheetState extends ConsumerState<FarmLockDepositSheet> {
ref.read(FarmLockDepositFormProvider.farmLockDepositForm.notifier)
..setDexPool(widget.pool)
..setDexFarmLock(widget.farmLock)
..setAPREstimation(widget.farmLock.apr3years);
..setAPREstimation(widget.farmLock.apr3years * 100);

await ref
.read(FarmLockDepositFormProvider.farmLockDepositForm.notifier)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,10 @@ class FarmLockLevelUpFormSheetState
entry.key,
),
level: entry.key,
aprEstimation: farmLockLevelUp
.farmLock!.stats[entry.key]?.aprEstimation ??
0,
aprEstimation: (farmLockLevelUp.farmLock!
.stats[entry.key]?.aprEstimation ??
0) *
100,
);
}).toList(),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class _FarmLockLevelUpSheetState extends ConsumerState<FarmLockLevelUpSheet> {
..setDepositIndex(widget.depositIndex)
..setAmount(widget.lpAmount)
..setCurrentLevel(widget.currentLevel)
..setAPREstimation(widget.farmLock.apr3years);
..setAPREstimation(widget.farmLock.apr3years * 100);

await ref
.read(FarmLockLevelUpFormProvider.farmLockLevelUpForm.notifier)
Expand Down

0 comments on commit f5d747d

Please sign in to comment.