Voucher history is taking the history of all vouchers into account instead of just that individual voucher.
hasUserExhausted(): Limit is the amount of times any single Habbo can redeem that voucher. Any vouchers that have a limit of X will not work if the Habbo has ever redeemed >= X amount of vouchers, no matter the voucher code, redeemed or not..
isExhausted(); Amount is the amount of times it's redeemed before it's counted as exhausted. Because the total history size of all vouchers is taken into account and not just the history of the specific voucher, it will show any voucher as falsely exhausted when the total of all vouchers redeemed exceeds the redeem amount of any specific voucher.
In GitLab by @oshawott on Jan 26, 2022, 08:44
Merges vouchers-fix -> dev
Voucher history is taking the history of all vouchers into account instead of just that individual voucher.
hasUserExhausted(): Limit is the amount of times any single Habbo can redeem that voucher. Any vouchers that have a limit of X will not work if the Habbo has ever redeemed >= X amount of vouchers, no matter the voucher code, redeemed or not..
isExhausted(); Amount is the amount of times it's redeemed before it's counted as exhausted. Because the total history size of all vouchers is taken into account and not just the history of the specific voucher, it will show any voucher as falsely exhausted when the total of all vouchers redeemed exceeds the redeem amount of any specific voucher.