Linkswap

QuantstampFiles named in the report

Quantstamp reviewed Linkswap on 3 Nov 2020: 10 findings, 0 critical; 7 marked fixed, 3 acknowledged.

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

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings10

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium001
Low036
LowClone-and-OwnAcknowledged

The clone-and-own approach involves copying and adjusting open source code at one's own discretion. From the development perspective, it is initially beneficial as it reduces the amount of effort. However, from the security perspective, it involves some risks as the code may not follow the best practices, may contain a security vulnerability, or may include intentionally or unintentionally modified upstream libraries. In particular, the file `SafeMathLinkswap.sol` appears to be cloned from another project.

LowMoving-simple-average over window may lead to arbitrage if `windowSize` is largeAcknowledged

If the price has changed significantly over the `windowSize`, older values may not be helpful at determining the current value of a coin. For example, if the average price has significantly increased over 24h, then `consult` will return a higher `out` amount than desired (as the older low values will lower the average price).

LowUnchecked function parametersAcknowledged

1. In order to avoid faulty transactions that use default values for arguments, we recommend checking that address arguments are non-zero in the following functions: 1. `LinkswapFactory.createPair`; 1. `LinkswapPriceOracle.constructor`; 1. `YFLPurchaser.constructor`; 1. `yYFL.constructor`. 1. For the functions `getAmountOut` and `getAmountIn` in `LinkswapLibrary.sol`, it should check if the input variable `tradingFeePercent` is smaller than `1e6`. 1. For the function `getAmountsOut` and `getAmountsIn` in `LinkswapLibrary.sol`, it should check if each of the array element in the input variable `path` is not equal to `0x0`. 1. In function `swap` of `LinkswapPair.sol`, it should check if `to` is a `ILinkswapCallee` contract. 1. Although the function `parseStringData` in `SafeERC20Namer.sol` appears not to be used anywhere in this project, it should check if `b` contains more than `64` bytes, and also should check if `b` contains exactly `charCount + 64` bytes. 1. On `L18` in `UQ112x112.sol`, it should check if `uint112 y` is not equal to `0`.

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

  • contracts/test/ChainlinkOracleTest.sol
  • contracts/interfaces/ILinkswapRouter.sol
  • contracts/YFLink.sol
  • contracts/libraries/Math.sol
  • contracts/test/RouterEventEmitterTest.sol
  • contracts/YFLPurchaser.sol
  • contracts/test/BabylonianTest.sol
  • contracts/libraries/UQ112x112.sol
  • contracts/interfaces/ILinkswapCallee.sol
  • contracts/test/AddressStringUtilTest.sol
  • contracts/interfaces/IYFLPurchaser.sol
  • contracts/libraries/SafeERC20Namer.sol
  • contracts/test/FixedPointTest.sol
  • contracts/test/LinkswapPriceOracleTest.sol
  • contracts/interfaces/IUniswapV2Pair.sol
  • contracts/interfaces/ILinkswapPriceOracle.sol
  • contracts/libraries/LinkswapLibrary.sol
  • contracts/test/WETHTest.sol
  • contracts/interfaces/IController.sol
  • contracts/test/LinkswapERC20Test.sol
  • contracts/libraries/TransferHelper.sol
  • contracts/libraries/SafeMathLinkswap.sol
  • contracts/libraries/PairNamer.sol
  • contracts/test/TransferHelperTest.sol
  • contracts/test/PairNamerTest.sol
  • contracts/interfaces/IWETH.sol
  • contracts/interfaces/IyYFL.sol
  • contracts/interfaces/IChainlinkOracle.sol
  • contracts/test/YFLPurchaserTest.sol
  • contracts/LinkswapRouter.sol
  • contracts/interfaces/ILinkswapPair.sol
  • contracts/libraries/FixedPoint.sol
  • contracts/test/ERC20Test.sol
  • contracts/interfaces/ILinkswapFactory.sol
  • contracts/test/DeflatingLinkswapERC20Test.sol
  • contracts/interfaces/ILinkswapERC20.sol
  • contracts/LinkswapPriceOracle.sol
  • contracts/LinkswapPair.sol
  • contracts/test/SafeERC20NamerTest.sol
  • contracts/LinkswapFactory.sol
  • contracts/libraries/AddressStringUtil.sol
  • contracts/yYFL.sol

Part of Linkswap’s security record

Linkswap
Audits1 audit by 1 firmLast audit Nov 2020, by Quantstamp.
Critical findingsNo open critical findingsIn 1 report.
Open Linkswap’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