LinoSwap Ⅱ

CertiKFiles named in the report

CertiK reviewed LinoSwap (LinoSwap Ⅱ) on 23 Feb 2023: 17 findings, 0 critical; 15 marked fixed, 1 acknowledged, 1 open.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings17

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

SeverityOpenAcknowledgedFixed
Critical000
High010
Medium001
Low1014
HighCentralization RisksAcknowledged

In the contract `LinoswapV1Factory` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and do the following: - change the `protocolStatus` to unset all protocol fees, or to enable them during buys, sells, or both; - allow or disallow the address of a basic curve; - allow or disallow the address of a signer; - change the address of the `protocolRecipient`, this is the address that receives the protocol fees; - change the address of the `_poolTemplate`, this will change the implementation of any new pools that are created; - allow or disallow the address of a rarity value curve; - change the protocol share, which is the share of the swap fee that is allocated for the protocol fee; - withdraw the ETH accumulated from protocol fees from all pools; - allow or disallow a rarity value function. ![](https://accelerator-tasks-prod.acc.corp.certik.com/a3d0bf655e4d4d1b80cb47a2b2adf833/diagrams/centralization_LinoswapV1Factory-LinoswapV1Factory-_owner.svg) --- In the contract `LinoswapV1Pool` the role `_factory` and the owner of the `_factory` have authority over the functions shown in the diagram below. Any compromise to the `_factory` account may allow the hacker to take advantage of this authority and do the following: - withdraw any NFT's held by the contract that are not in the reserves of the pool; - withdraw the protocol fees that have accumulated in the pool; - withdraw any ERC20 tokens held by the contract; - pause or unpause swaps. ![](https://accelerator-tasks-prod.acc.corp.certik.com/a3d0bf655e4d4d1b80cb47a2b2adf833/diagrams/centralization_LinoswapV1Pool-LinoswapV1Pool-_factory.svg) --- In the contract `LinoswapV1Pool` the owner of the `_factory` and owner of the `_nft` have authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and do the following: - change the royalty status to take royalties on buys, sells, both, or neither; - change the royalty receiver info, which allows them to set what addresses will receive royalties and the share for each address. ![](https://accelerator-tasks-prod.acc.corp.certik.com/455ba44b303b4480b2fa9cf959cc938e/diagrams/centralization_LinoswapV1Pool-LinoswapV1Pool-_owner.svg) --- In the contract `LinoswapV1Pool` any signer that is allowed can provide any `liquidityNFT.liquidityNFTIDs` and `liquidityNFT.rarityRankPercentageNFTIDs` as inputs. Any compromise to an allowed signer may allow the hacker to take advantage of this and manipulate the `rarityRankPercentage` of the `NFTIDs` so that they are either more rare than they should be and thus overvalued, or they are less rare than they should be and thus are undervalued.

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

  • contracts/LinoswapV1Royalty.sol
  • contracts/interfaces/ILinoswapV1Pool.sol
  • contracts/libraries/LinoswapV1Cloner.sol
  • contracts/interfaces/ILinoswapV1Call.sol
  • contracts/basicCurve/IBasicCurve.sol
  • contracts/rarityValueCurve/ParetoDistribution.sol
  • contracts/interfaces/ILinoswapV1Protocol.sol
  • contracts/LinoswapV1Router.sol
  • contracts/interfaces/ILinoswapV1Factory.sol
  • contracts/interfaces/ILinoswapV1Router.sol
  • contracts/interfaces/ILinoswapV1Royalty.sol
  • contracts/basicCurve/XykCurve.sol
  • contracts/LinoswapV1Pool.sol
  • contracts/libraries/TransferHelper.sol
  • contracts/libraries/LinoswapV1Const.sol
  • contracts/libraries/SafeTransferLib.sol
  • contracts/rarityValueCurve/IRarityValueCurve.sol
  • contracts/LinoswapV1Factory.sol

Part of LinoSwap’s security record

LinoSwap
Audits2 audits by 1 firmLast audit Feb 2023, by CertiK.
Critical findingsNo open critical findingsAcross the 2 reports, 1 critical finding was reported. It is marked fixed by the firm that reported it.
Open LinoSwap’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