File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
components/Strategies/Bull/BullTrade Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -238,15 +238,15 @@ const BullDeposit: React.FC<{ onTxnConfirm: (txn: BullTransactionConfirmation) =
238
238
}
239
239
240
240
if ( useQueue ) {
241
- await queueDepositEth ( new BigNumber ( depositAmountRef . current ) , dataToTrack , onTxnConfirmed )
241
+ await queueDepositEth ( amount , dataToTrack , onTxnConfirmed )
242
242
} else {
243
243
await bullFlashDeposit (
244
244
quote . ethToCrab ,
245
245
quote . minEthFromSqth ,
246
246
quote . minEthFromUsdc ,
247
247
quote . wPowerPerpPoolFee ,
248
248
quote . usdcPoolFee ,
249
- new BigNumber ( depositAmountRef . current ) ,
249
+ amount ,
250
250
dataToTrack ,
251
251
onTxnConfirmed ,
252
252
)
Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ const BullPosition: React.FC = () => {
38
38
39
39
const loading = ! useAtomValue ( bullPositionLoadedAtom )
40
40
41
- const initiatedDepositAmount = toTokenAmount ( ethQueued , WETH_DECIMALS )
42
- const initiatedWithdrawalAmount = toTokenAmount ( zenBullQueued , ZENBULL_TOKEN_DECIMALS ) . times ( bullEthValue )
43
-
44
- if ( bullCurrentETH . isZero ( ) && initiatedDepositAmount . isZero ( ) && initiatedWithdrawalAmount . isZero ( ) ) {
41
+ if ( bullCurrentETH . isZero ( ) && ethQueued . isZero ( ) && zenBullQueued . isZero ( ) ) {
45
42
return null
46
43
}
47
44
45
+ const initiatedDepositAmount = toTokenAmount ( ethQueued , WETH_DECIMALS )
46
+ const initiatedWithdrawalAmount = toTokenAmount ( zenBullQueued , ZENBULL_TOKEN_DECIMALS ) . times ( bullEthValue )
47
+
48
48
return (
49
49
< div className = { classes . position } id = "pos-page-bull" >
50
50
< div className = { classes . positionTitle } >
You can’t perform that action at this time.
0 commit comments