sherlock-audit / 2022-11-telcoin-judging

0 stars 0 forks source link

Met - Unnecessary inaccuracy and wasted gas in FeeBuyback::submit #70

Closed sherlock-admin closed 1 year ago

sherlock-admin commented 1 year ago

Met

low

Unnecessary inaccuracy and wasted gas in FeeBuyback::submit

Summary

Using total telcoin balance for referral payout instead of amount.

Vulnerability Detail

We already have the "amount" available right there, so there is no reason to use the total token balance as the transfer amount.

Impact

Manual Review

Recommendation