DEFED

CertiKFiles named in the report

CertiK reviewed DEFED on 18 Oct 2022: 22 findings, 0 critical; 7 marked fixed, 5 acknowledged, 10 open.

No open critical findings
Open the reportOpen DEFED’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings22

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High021
Medium031
Low1005
HighCentralization Related RisksAcknowledged

In the contract `AssetManagement`, the role `owner` has authority over the following function(s): - function `widthdraw()` and `withdrawETH()`, to withdraw money from the contract. - function `activeToken()` and `pauseToken()`, to manege the supported tokens. In the contract `BridgeControl`, the role `owner` has authority over the following function(s): - function `setVirtualDefedToken()`, to set `virtualDefedToken` and `veDEFE`. - function `transferFromEthereumForDeposit()`, `transferFromEthereumForRepay()` and `transferFromEthereum()`, to mint `vToken` for the user and interact with `LendingPool`(deposit or repay). - function `lockFromEthereum()`, to lock `defe` for the user. - function `turnOutToken()` (added in commit 3dbe95d01202b37aa139702e95f3150705eb8c7a), to withdraw tokens from the contract. Any compromise to the `owner` account may allow a hacker to take advantage of this authority and bring unpredictable damages to the project.

HightokenController as parameterAcknowledged

We understand the team needs to receive the parameter `tokenController` to read its configs as the contract is a proxy contract for `userProxy` contracts to perform delegate calls. But it is very dangerous behavior to allow the caller to decide which contract to interact with. The events in the contract `TokenController` are untrusted.

MediumCross chain transaction reliabilityAcknowledged

Cross-chain token transfer depends on third-party cross-chain protocol, for example, PolyNetwork. If the cross-chain protocol is hacked, the `BridgeControl` protocol in the source chain cannot confirm the transaction status correctly. As a result, the user deposits tokens in the source chain but cannot receive them in the target chain. The server is responsible for responding to on-chain events, maintaining transaction information, and executing across the chain. It needs reliable logic to support it. This part is not in the audit scope.

MediumInitial Token DistributionAcknowledged

Tokens are sent to the address `misc` when deploying the contract. This could be a centralization risk as the address `misc` can distribute tokens without obtaining the consensus of the community.

MediumReceive and Fallback function failureAcknowledged

In Ethereum, `send/transfer/call` can be used for ETH transferring. In the worst case, the `receive` and `fallback` functions can only rely on 2300 gas being available (for example when `send` or `transfer` is used), leaving little room to perform other operations except basic logging. If the contract `AssetManagement` is going to be deployed with proxy, since the certain version of proxy codes will do delegate calls in the receive() function, the below code in the function withdrawETH() will revert because of insufficient gas exception. ```solidity IWETH(WETH).withdraw(amount); ```

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (20)

  • contracts/Defed/interfaces/IVToken.sol
  • contracts/Defed/interfaces/IVTokenFactory.sol
  • contracts/Defed/VToken.sol
  • contracts/Defed/interfaces/IUserProxyFactory.sol
  • contracts/Defed/interfaces/IBridgeFeeController.sol
  • contracts/Defed/interfaces/IFlashSwapCallee.sol
  • contracts/Defed/UserProxy.sol
  • contracts/Defed/AssetManagement.sol
  • contracts/Defed/DefeToken.sol
  • contracts/Defed/interfaces/IERC20.sol
  • contracts/Defed/interfaces/INetworkFeeController.sol
  • contracts/Defed/VTokenFactory.sol
  • contracts/Defed/interfaces/IUserProxy.sol
  • contracts/Defed/interfaces/ITokenController.sol
  • contracts/Defed/interfaces/IIncentivesController.sol
  • contracts/Defed/interfaces/ILendingPool.sol
  • contracts/Defed/BridgeControl.sol
  • contracts/Defed/TokenController.sol
  • contracts/Defed/UserProxyFactory.sol
  • contracts/Defed/interfaces/IBridgeControl.sol

Part of DEFED’s security record

DEFED
Audits1 audit by 1 firmLast audit Oct 2022, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open DEFED’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

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