IDEX

QuantstampFiles named in the report

Quantstamp reviewed IDEX on 21 Jul 2020: 11 findings, 0 critical; 7 marked fixed, 4 acknowledged.

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

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings11

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium000
Low047
LowInteger Overflow / UnderflowFixed

Integer overflow/underflow occur when an integer hits its bit-size limit. Every integer has a set range; when that range is passed, the value loops back around. A clock is a good analogy: at 11:59, the minute hand goes to 0, not 60, because 59 is the largest possible minute. Integer overflow and underflow may cause many unexpected kinds of behavior and was the core reason for the `batchOverflow` attack.

LowMissing Input ValidationFixed

* `contracts/Exchange.sol`: `wallet` should be checked to be different from `0x0` in `loadBalanceInAssetUnitsByAddress`, `loadBalanceInPipsBySymbol`, and `loadBalanceInAssetUnitsBySymbol`. * `contracts/Governance.sol`: Functions `setCustodian`, `initiateExchangeUpgrade`, and `initiateGovernanceUpgrade` do not check if the given address parameter is a contract. * `libraries/AssetRegistry.sol`: Function `registerToken` does not check if `tokenAddress` is different from `0x0`. Moreover, it does not check if `tokenAddress` is a contract address. * `libraries/AssetRegistry.sol`: Function `registerToken` does not check if symbol is different from the empty string.

LowOld ERC20 Tokens May Not Work With IDEXFixed

Since Solidity 0.4.22, some non-ERC20 compliant token contracts that used to work in older versions no longer work now. Since many token contracts implement the `transfer` function by either returning `true` or reverting the call altogether, some contract developers deemed the return value unnecessary, writing contracts with a `transfer` function with signature `function transfer(address to, uint amount) public { ... }`. All non-ERC20 compliant contracts like the latter case that used to work before 0.4.22 will fail in IDEX, as it relies on Solidity 0.6.8. More info can be found [here](https://medium.com/@chris_77367/explaining-unexpected-reverts-starting-with-solidity-0-4-22-3ada6e82308c).

LowRace Conditions / Front-RunningFixed

Contrary to the comment on L546, calling `exitWallet` does not immediately disable deposits. Deposits may still occur after one calls `exitWallet` if deposit transactions are mined first (e.g, if they are given higher gas).

LowUnlocked PragmaFixed

Every Solidity file specifies in the header a version number of the format `pragma solidity (^)0.4.*`. The caret (`^`) before the version number implies an unlocked pragma, meaning that the compiler will use the specified version _and above_, hence the term "unlocked." For consistency and to prevent unexpected behavior in the future, it is recommended to remove the caret to lock the file onto a specific Solidity version.

LowUnused ImportsFixed

* `SafeMath` is imported but never used. * `IERC20` is imported but never used.

LowUsers Cannot Withdraw their Fractional Part of Ether DepositsFixed

The `depositEther()` function is payable and can receive arbitrary amounts of `ether`. This function calls `deposit()`, which first converts the amount to pips and then back into `ether`. Such conversion is required so that the transfer of `ether` to the Custodian contract does not contain the “dust”, i.e. values lower than 1/10^8 `ether`. However, the dust is locked in the `Exchange` contract for each user deposit, without letting users ever having them back.

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/libraries/AssetUnitConversions.sol
  • contracts/Exchange.sol
  • contracts/libraries/Signatures.sol
  • contracts/libraries/AssetRegistry.sol
  • contracts/test/GovernanceMock.sol
  • contracts/Owned.sol
  • contracts/libraries/UUID.sol
  • contracts/test/UUIDMock.sol
  • contracts/test/AssetsMock.sol
  • contracts/test/SafeMath64Mock.sol
  • contracts/Governance.sol
  • contracts/libraries/Interfaces.sol
  • contracts/test/ExchangeMock.sol
  • contracts/test/TestToken.sol
  • contracts/libraries/SafeMath64.sol
  • contracts/test/NonCompliantToken.sol
  • contracts/libraries/AssetTransfers.sol
  • contracts/Migrations.sol
  • contracts/Custodian.sol
  • contracts/test/SkimmingTestToken.sol

Part of IDEX’s security record

IDEX
Audits1 audit by 1 firmLast audit Jul 2020, by Quantstamp.
Critical findingsNo open critical findingsIn 1 report.
Open IDEX’s security record

Security firm

Quantstamp

236 projects reviewed · 332 reports · latest Oct 2026

See Quantstamp’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