As of 3 Nov 2026, DEFED has 1 audit report on Trustblock, by CertiK, dated 18 Oct 2022. That report lists no open critical findings.
Record last updated . It holds audits, findings and contracts up to Nov 2026, and incidents up to Oct 2026. Trustblock does not review code.
Newest first
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 2 | 1 |
| Medium | 0 | 3 | 1 |
| Low | 10 | 0 | 5 |
The account information is not recorded in the contract `AssetManagement`, we assume that the project might query events and maintain the accounts in their own server. This part is not public to the users.
Open the reportThe function `_approve()` is after the function `_transfer()`. It's recommended to move the function `_approve()` in front of the `_transfer` step to check early and revert in time to save gas when the allowance is not enough.
Open the reportThe part of logic is hidden in the interactions with third-party protocols or centralized manipulation. For example, function `transferToEthereum()` has no permission control, we assume that there is no `vToken` stuck in the contract. So if the user wants to transfer to Ethereum, he/she needs to transfer `vToken` to the contract first. And how will the remainder of the cross-chain transfer be completed. If no `vToken` can be left in the contract, each external call must spend all of the minted tokens. The team should ensure that the control process is reliable and complete.
Open the report`public` functions that are never called by the contract could be declared as `external`. `external` functions are more efficient than `public` functions.
Open the reportThe amount recorded in the events of the functions may be inconsistent with the actual amount. The contract `AssetManagement` does not support deflationary tokens. And adapting deflationary coins with non-deflationary `vToken` may be problematic.
Open the reportThe function `deposit()` and `depositForRepay()` are totally the same, except the event and error message. We would like to confirm with the client whether there is need to distinguish the two functions and if the functions can be merged. The same case exists between function `depositETHForRepay()` and `depositETH()`.
Open the reportState variables that never change should be declared as `constant` to save gas. ```solidity=43 uint256 public lastTokenId; ``` - `lastTokenId` should be declared `constant`.
Open the reportThe contracts are serving as the underlying entity to interact with third-party `BANKCARDNFT`, `bridgeFeeController`, `lendingPool`, `virtualDefedToken`, `FlashSwapCallee`, `IVeDEFE` protocols. The scope of the audit treats 3rd party entities as black boxes and assumes their functional correctness. However, in the real world, 3rd parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of 3rd parties can possibly create severe impacts, such as increasing fees of 3rd parties, migrating to new LP pools, etc.
Open the reportThe return value of an external call is not stored in a local or state variable. ```solidity=85 IERC20(vToken).approve(lendingPool,amount); ``` --- ```solidity=101 IERC20(vToken).approve(lendingPool,amount); ``` --- ```solidity=102 ILendingPool(lendingPool).repay(vToken, amount,rateMode,proxyAddr); ``` --- ```solidity=137 IERC20(virtualDefedToken).approve(veDEFE,amount); ``` --- ```solidity=61 ILendingPool(params.lendingPool).withdraw(vToken,amount,params.bridgeControl); ``` --- ```solidity=101 IERC20(vToken).approve(params.lendingPool,targetAmount); ``` --- ```solidity=118 ILendingPool(params.lendingPool).withdraw(vToken,fee,networkFeeVault); ``` --- ```solidity=135 ILendingPool(params.lendingPool).withdraw(vToken,amount,params.bridgeControl); ``` --- ```solidity=160 IERC20(vToken).approve(params.lendingPool,targetAmount); ``` --- ```solidity=192 ILendingPool(params.lendingPool).withdraw(vToken,amount,address(this)); ``` --- ```solidity=199 ILendingPool(params.lendingPool).repay(vToken, targetAmount,rateMode,address(this)); ```
Open the reportThe linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.
Open the reportThe reports name a repository or files. Open a report to see its scope.
Is this your project? Show this record on your own website. The label states what the record holds, links to this page and updates by itself. It is free and needs no sign-in.
Automatic: the three strongest facts of this project’s own record (its last audit and two more), highlighted. They update with the record. Picking a fact turns Automatic off.
<head><script src="https://widget.trustblock.run/project-widget.min.js" defer></script></head><body><divdata-tb-project-widgetdata-tb-project-slug="defed"></div></body>
Paste the code where the label should appear. It uses no API credit and updates by itself.
Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us