Closed sherlock-admin closed 1 year ago
Met
low
Using total telcoin balance for referral payout instead of amount.
We already have the "amount" available right there, so there is no reason to use the total token balance as the transfer amount.
https://github.com/sherlock-audit/2022-11-telcoin/blob/main/contracts/fee-buyback/FeeBuyback.sol#L62-L64
Manual Review
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
Code Snippet
https://github.com/sherlock-audit/2022-11-telcoin/blob/main/contracts/fee-buyback/FeeBuyback.sol#L62-L64
Tool used
Manual Review
Recommendation