Assessment reports>Takara Lend Contracts>Discussion>Unused added constants in TTokenStorage

Unused added constants in TTokenStorage

In the TTokenStorage contract, implemented in the file TTokenInterfaces.sol, the following two constants were added:

 contract TTokenStorage {
     // [...]

+    // @notice Maximum fraction of redemption factor that can be set aside for reserves
+    uint256 internal constant redemptionReserveFactorMaxMantissa = 0.05 ether;
+
+    uint256 internal constant minRedemptionCashRequire = 1 wei;
+

     // [...]
 }

These constants are unused in the rest of the project, so we recommend removing them in order to not make misleading assertions about what restrictions this protocol implements.

Zellic © 2025Back to top ↑