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
Router.updateAnchorPrice iterates over all anchor tokens on each update which is very inefficient and does a lot of expensive storage loads. add a mapping address => index to easily retrieve the index of the token in the arrayAnchors mapping.
The text was updated successfully, but these errors were encountered:
Handle
@cmichelio
Vulnerability details
Router.updateAnchorPrice
iterates over all anchor tokens on each update which is very inefficient and does a lot of expensive storage loads. add a mappingaddress => index
to easily retrieve the index of the token in thearrayAnchors
mapping.The text was updated successfully, but these errors were encountered: