Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
fix deposit limit parsing mango (#2394)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 authored Jul 29, 2024
1 parent bd87c06 commit 3ae8855
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,12 @@ const EditToken = ({
getNullOrTransform(values.maintWeightShiftLiabTarget, null, Number),
values.maintWeightShiftAbort!,
values.setFallbackOracle!,
getNullOrTransform(values.depositLimit?.toString(), BN),
getNullOrTransform(
values.depositLimit !== null && values.depositLimit !== undefined
? values.depositLimit?.toString()
: null,
BN
),
getNullOrTransform(values.zeroUtilRate, null, Number),
getNullOrTransform(values.platformLiquidationFee, null, Number),
values.disableAssetLiquidation!,
Expand Down

0 comments on commit 3ae8855

Please sign in to comment.