File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,11 @@ public function transferLazy(
83
83
?array $ meta = null
84
84
): TransferLazyDtoInterface {
85
85
$ discount = $ this ->personalDiscountService ->getDiscount ($ from , $ to );
86
+ $ toWallet = $ this ->castService ->getWallet ($ to );
86
87
$ from = $ this ->castService ->getWallet ($ from );
87
88
$ fee = $ this ->taxService ->getFee ($ to , $ amount );
88
89
89
- $ amountWithoutDiscount = $ this ->mathService ->sub ($ amount , $ discount );
90
+ $ amountWithoutDiscount = $ this ->mathService ->sub ($ amount , $ discount, $ toWallet -> decimal_places );
90
91
$ depositAmount = $ this ->mathService ->compare ($ amountWithoutDiscount , 0 ) === -1 ? '0 ' : $ amountWithoutDiscount ;
91
92
$ withdrawAmount = $ this ->mathService ->add ($ depositAmount , $ fee , $ from ->decimal_places );
92
93
You can’t perform that action at this time.
0 commit comments