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, it lacks a sanity check for assetId. Users might accidentally pass any script which declared the balanceOf ABI, and leads to unwanted behaviors in the end.
Description
There is a lack of sanity check in the
getuintprofit
method of flamingo staking contract, which might lead to unwanted behavior.getuintprofit
is a query function and returnscurrentUintStackProfit
of the corresponding asset.flamingo-contract-staking/StakingReocrd.cs
flamingo-contract-staking/GlobalRecordMethod.cs
However, it lacks a sanity check for
assetId
. Users might accidentally pass any script which declared thebalanceOf
ABI, and leads to unwanted behaviors in the end.Recommendation
flamingo-contract-staking/StakingReocrd.cs
The text was updated successfully, but these errors were encountered: