You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if the owner calls this function, owner.Equals(callingScript) will be true and the owner is able to spend the tokens that are approved to be spent by the spender.
Recommendation
Owner shouldn't be able to call the TransferFrom function to spend the tokens.
Description
There is a misused sanity check in the
TransferFrom
method of flamingo staking contract. Owner can spend the tokens approved to be spent by spender.Function
TransferFrom
can be called by thespender
to spend the tokens approved by theowner
.Staking/flamingo-contract-staking/FLM/FLM.cs
However, if the
owner
calls this function,owner.Equals(callingScript)
will be true and theowner
is able to spend the tokens that are approved to be spent by thespender
.Recommendation
Owner shouldn't be able to call the
TransferFrom
function to spend the tokens.Staking/flamingo-contract-staking/FLM/FLM.cs
The text was updated successfully, but these errors were encountered: