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
In the rare event some contracts have code within their receive()/fallback() functions, SUPER_TRANSFERVALUE could be used to initiate calls from these fonctions.
One way to prevent it could be by limiting the gas of a transfer made by controller that has the SUPER_TRANSFERVALUE permission does not have the required CALL/SUPER_CALL permission.
The text was updated successfully, but these errors were encountered:
skimaharvey
changed the title
Add gas limit to calls of a controller with only SUPER_TRANSFERVALUEpermission
Add gas limit to calls of a controller with only SUPER_TRANSFERVALUE permission
Jan 11, 2023
Since reverting when a controller exceeds a specific gas limit when transferring value is the intention, I don't see a strong reason to implement this on the smart contract level, when a a controller can specify this gasLimit for the whole tx.
In the rare event some contracts have code within their
receive()
/fallback()
functions,SUPER_TRANSFERVALUE
could be used to initiate calls from these fonctions.One way to prevent it could be by limiting the gas of a transfer made by controller that has the
SUPER_TRANSFERVALUE
permission does not have the requiredCALL
/SUPER_CALL
permission.The text was updated successfully, but these errors were encountered: