background
logo

Security Audit Report for Mantle's Fiat24 Contracts

DESCRIPTION

The target of this audit is the private code repository of Fiat24 Contracts of Mantle. The Fiat24 Contracts of Mantle is a fiat-crypto payment infrastructure on Mantle that enables card authorization processing and operator-controlled vault management for fiat token operations. This update introduces a delegation vault and a double-booking mechanism. The delegation vault lets operators handle payouts, asset settlements, and rebalancing between Fiat24 tokens and USDC via the contract BufferPool and CryptoDeposit. The double-booking mechanism in the contract Fiat24CardAuthorizationMarqeta ensures that purchases via Ethena are properly tracked on-chain, preserving a verifiable record that links each payment to corresponding users.

Please refer to the report for the detailed audit scope.

Our audit methodology employs automated vulnerability scans, manual verification, and business logic analysis to uncover potential security issues coupled with gas and code quality optimization recommendations.

In summary, we did not find any critical issues within the audited codebase. However, we have identified some non-critical issues that should be addressed. Additionally, we have put forth recommendations and notes that should be taken into consideration. It is important to note that the scope of our audit was strictly limited to the specific code versions mentioned in the report. Any updates made subsequent to our review would require a re-evaluation.

KEY FINDINGS

In total, we find 2 potential issues in the smart contract. We also have 5 recommendations and 3 notes, as follows:

High Risk: 0
Medium Risk: 1
Low Risk: 1
Recommendation: 5
Note: 3
ID Severity Description Status
1 Medium Lock of native tokens in the contract DelegationVault Fixed
2 Low Lack of wallet provider checks in the function settleTokenToAccount() Fixed
3 - Revise the misleading names in the skip mechanism Confirmed
4 - Revise the input name amountOutMinimum of the _depositTOkenViaUsdc() function Fixed
5 - Remove redundant code Partially Fixed
6 - Correct misleading error names Partially Fixed
7 - Revise the inconsistent error message in the setAlternativeInputTokens() function Fixed
8 - Ensure proper off-chain parameter validations -
9 - Proper approvals for double booking operations -
10 - Potential centralization risks -

More details are provided in the audit report.

Take the first step towards a secure future

Reach out now for BlockSec's expert code audit services, elevate the security of your protocol before it goes live!