JOJO - Ⅲ

CertiKFiles named in the report

CertiK reviewed JOJO (JOJO - Ⅲ) on 9 Dec 2022: 18 findings, 0 critical; 11 marked fixed, 3 acknowledged, 4 open.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings18

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

SeverityOpenAcknowledgedFixed
Critical000
High010
Medium020
Low4011
LowIncorrect commentsOpen

```solidity=10 /// @param primaryAmount is the amount of primary asset you want to withdraw. /// @param secondaryAmount is the amount of secondary asset you want to withdraw. ``` The description of `deposit()` is about `withdraw`. ```solidity=44 /// orderList[0] is taker order and orderList[1:] are taker orders. ``` All but first are maker orders. ```solidity=196 /// safe or being liquidated if return 0. ``` ```solidity=233 If liqPrice<0, it should be considered as absolutely safe or being liquidated. ``` "or" is likely supposed to be "of".

LowLow-level CallOpen

The lower-level call is found in: ```Solidity=46 function execute(address to, bytes calldata data, uint256 value) external onlyOwner { (bool success, ) = to.call{value: value}(data); require(success, "tx failed"); emit ExecuteTransaction(owner, address(this)); } ``` Although only the owner can call the function `execute()` to perform low-level calls, but if the owner account is compromised, the hacker can take advantage of the owner account's privileges in any contract and bring unpredictable damages.

LowMissing Zero Address ValidationOpen

Addresses should be checked before assignment or external call to make sure they are not zero addresses. ```solidity=32 chainlink = _chainlink; ``` ```solidity=28 witnet = _witnet; ``` ```solidity=41 owner = _owner; ``` ```solidity=42 dealer = _dealer; ``` ```solidity=33 dealer = _dealer; ```

LowPotential Reentrancy in `_settle()`Open

`Perpetual._settle()` first makes an external call to `IDealer.realizePnl()` and only after that nullifies `reducedCredit`. This opens a risk of reentrancy if `Position._realizePnl()` will have external calls in the future.

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 (26)

  • contracts/adaptor/constOracle.sol
  • contracts/impl/Perpetual.sol
  • contracts/lib/Position.sol
  • contracts/lib/Liquidation.sol
  • contracts/impl/JOJOOperation.sol
  • contracts/intf/IDecimalERC20.sol
  • contracts/fundingRateKeeper/FundingRateUpdateLimiter.sol
  • contracts/lib/Types.sol
  • contracts/lib/Funding.sol
  • contracts/utils/SignedDecimalMath.sol
  • contracts/intf/IMarkPriceSource.sol
  • contracts/utils/Errors.sol
  • contracts/intf/IDealer.sol
  • contracts/impl/JOJOStorage.sol
  • contracts/adaptor/chainlinkAdaptor.sol
  • contracts/subaccount/SubaccountFactory.sol
  • contracts/intf/IPerpetual.sol
  • contracts/lib/Operation.sol
  • contracts/impl/JOJODealer.sol
  • contracts/impl/JOJOView.sol
  • contracts/adaptor/emergencyOracle.sol
  • contracts/lib/EIP712.sol
  • contracts/lib/Trading.sol
  • contracts/subaccount/Subaccount.sol
  • contracts/adaptor/witnetAdaptor.sol
  • contracts/impl/JOJOExternal.sol

Part of JOJO’s security record

JOJO
Audits1 audit by 1 firmLast audit Dec 2022, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open JOJO’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