Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: low
Invalid

`BuyerAgent` Contract Cannot Utilize Purchased `SwanAssets` in Future Use Cases Due to Lack of Transfer and Approval Rights

Summary

The BuyerAgent contract, which receives SwanAssets upon purchase, currently lacks functionality to transfer or approve these assets. This limitation means that if the Swan Protocol introduces new use cases or functionalities requiring asset transfer or delegation, the BuyerAgent contract would not be able to participate or make use of the purchased assets.

Vulnerability Details

The BuyerAgent contract, after receiving SwanAssets, has no mechanisms to transfer these assets or approve their use by other contracts or entities. Consequently, if the Swan Protocol implements future use cases or functionalities requiring asset transfer or delegation, the BuyerAgent contract will be restricted from utilizing or managing these assets, as it cannot interact with them beyond holding them.

Impact

Due to this limitation, the BuyerAgent contract:

  • Cannot interact with any future functionalities that require asset movement, transfer, or approval.

  • Will be restricted to only holding the assets without any mechanism for further engagement with the protocol’s evolving use cases.

  • Why on Earth any user will Buy the swanAssets, if they cannot be used or leveraged in any way possible

Tools Used

Manual review

Recommendations

To allow the BuyerAgent contract to interact with potential future use cases involving SwanAssets, consider implementing the following functions:

  • Transfer Function: A function to enable the transfer of SwanAssets held by the BuyerAgent contract.

  • Approval Function: A function to allow the BuyerAgent contract to approve other entities or contracts to use its SwanAssets.

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Appeal created

0xmax1mus Submitter
9 months ago
inallhonesty Lead Judge
9 months ago
inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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