Closed teye closed 2 years ago
Description The seller_profits is overwritten if the seller has ended multiple auctions but don't choose to withdraw.
seller_profits
Code https://github.com/Zilliqa/marketplace-contracts/blob/4e87e3feca3141e39780159ec72d0b9cd2eba512/contracts/english_auction.scilla#L757
Reproduce
End()
payment_tokens[seller]
Suggestions Use AddToPaymentTokenBalance
AddToPaymentTokenBalance
Nice catch Thanks!
Description The
seller_profits
is overwritten if the seller has ended multiple auctions but don't choose to withdraw.Code https://github.com/Zilliqa/marketplace-contracts/blob/4e87e3feca3141e39780159ec72d0b9cd2eba512/contracts/english_auction.scilla#L757
Reproduce
End()
, observe thepayment_tokens[seller]
. Don't withdraw the funds first.End()
, observe thepayment_tokens[seller]
, it would be overwritten by A2 calculations.Suggestions Use
AddToPaymentTokenBalance