Skip to content

Commit

Permalink
fix remaining taker amount (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien7668 authored Feb 17, 2025
1 parent 14702ed commit 1cd1db3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/liquidity-source/lo1inch/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ func (o *Order) SetAvailableMakingAmount(amount *big.Int) {
}

func (o *Order) GetRemainingTakingAmount() *big.Int {
return o.RemainingMakerAmount.ToBig()
return o.RemainingTakerAmount.ToBig()
}

func (o *Order) SetRemainingTakingAmount(amount *big.Int) {
o.RemainingTakerAmount = uint256.MustFromBig(amount)
}

func (o *Order) GetFilledMakingAmount() *big.Int {
Expand Down

0 comments on commit 1cd1db3

Please sign in to comment.