stake.link

stake.link
DeFiHardhatBridge
27,500 USDC
View results
Submission Details
Severity: low
Invalid

WrappedTokenBridge.transferTokens is unnecessary restricted

Summary

WrappedTokenBridge.transferTokens has onlyOwner modifier, but it's almost equivalent to WrappedTokenBridge.onTokenTransfer functionality except for user to be able to pay in native.

Vulnerability Details

WrappedTokenBridge.transferTokens have onlyOwner modifier which forbids regular users to use this function, but it seems reduntant because it has nothing with admin functionality and only allows users to choose to pay in native instead always in LINK as in the case of onTokenTransfer.

Impact

Users can't pay with native currency for cross chain wrapped token transfers.

Tools Used

Manual review

Recommendations

Remove onlyOwner modifier

Updates

Lead Judging Commences

0kage Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.