From 7a156edc8a8a1a69029a5189c0b15adc633eb651 Mon Sep 17 00:00:00 2001 From: Zied <26070035+zguesmi@users.noreply.github.com> Date: Wed, 29 May 2024 15:18:12 +0200 Subject: [PATCH] Dont update deal sponsored amount in storage --- contracts/beacon/Voucher.sol | 1 - 1 file changed, 1 deletion(-) diff --git a/contracts/beacon/Voucher.sol b/contracts/beacon/Voucher.sol index 4da4b52..0632844 100644 --- a/contracts/beacon/Voucher.sol +++ b/contracts/beacon/Voucher.sol @@ -340,7 +340,6 @@ contract Voucher is OwnableUpgradeable, IVoucher { // If the voucher did fully/partially sponsor the deal then mint voucher // credits back. voucherHub.refundVoucher(taskSponsoredAmount); - $._sponsoredAmounts[dealId] = dealSponsoredAmount - taskSponsoredAmount; } if (taskSponsoredAmount < taskPrice) { // If the deal was not sponsored or partially sponsored