The Fjord token, as described in its documentation, is expected to include a burnable feature. However, the current implementation of the Fjord token contract lacks the necessary functions to support token burning. This report identifies the impact of this missing functionality and provides a solution to implement the burn feature.
As you can see from the code below function for burning is missing, consider adding it to the code.
Non-compliance with Documentation: Users and developers relying on the documentation will expect burn functionality, leading to confusion and potential loss of trust when they find it missing.
Manual Review
To address this issue, the following burn functions should be added to the FjordToken
contract:
Burn Function:
Allows token holders to destroy a specified amount of their own tokens.
Burn From Function:
Allows an account to burn tokens from another account, given that the caller has sufficient allowance.
Here is the modified contract with the added burn functionality:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.