HardhatDeFi
15,000 USDC
View results
Submission Details
Severity: low
Invalid

Missing Function to Retrieve Registered Collateral Tokens

Summary
The contract lacks a view function that allows users and frontend applications to retrieve a list of all registered collateral tokens. This impacts usability and makes it difficult for users to know which tokens are supported for transactions.

Impact
Lack of Transparency: Users cannot determine which tokens are available for deposits or interactions.

  • Poor User Experience: Frontend applications must hardcode or manually track registered tokens.

  • Integration Challenges: DApps interacting with the contract cannot dynamically fetch the list of supported collateral tokens.

Tools Used
manual Review

Recommendations
Introduce a view function that returns all registered collateral tokens, allowing users and applications to easily access this information.

address[] private registeredCollateralTokens;
function getRegisteredCollateralTokens() external view returns (address[] memory) {
return registeredCollateralTokens;
}
Updates

Lead Judging Commences

bube Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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