Ignight Technologies

CertiKFiles named in the report

CertiK reviewed Sigma Protocol (Ignight Technologies) on 21 Sep 2022: 32 findings, 0 critical; 11 marked fixed, 9 acknowledged, 12 open.

No open critical findings
Open the reportOpen Sigma Protocol’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings32

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

SeverityOpenAcknowledgedFixed
Critical000
High082
Medium011
Low1208
LowAll of the `vxSIG` balance of the user are burntOpen

In the `unstake()` function, all the user's `vxSIG` token will be burnt no matter how many `xSIG` is unstaked. Is that an intended design?

LowAvailable VotesOpen

The available votes of a user is based on the user's balance of the `vxSIG` token. Is there a possibility that the user Bob transfer all his balance of `vxSIG` token to Alice after Bob voted a pool? Then Alice votes to the same pool. What if the `Bob` account and the `Alice` account are actually the same user?

LowIncompatibility With Deflationary Tokens(Farming)Open

When transferring standard ERC20 deflationary tokens, the input amount may not be equal to the received amount due to the charged transaction fee. For example, if a user stakes 100 deflationary tokens (with a 10% transaction fee) in a MasterChef, only 90 tokens actually arrived in the contract. However, the user can still withdraw 100 tokens from the contract, which causes the contract to lose 10 tokens in such a transaction. These contracts take the pool token balance(or staked/deposited token balance) into account when calculating the users' reward. An attacker can repeat the process of deposit and withdraw to lower the token balance in a deflationary token pool and cause the contract to increase the reward amount. Reference: https://thoreum-finance.medium.com/what-exploit-happened-today-for-gocerberus-and-garuda-also-for-lokum-ybear-piggy-caramelswap-3943ee23a39f

LowLeft over votes are sent to the last poolOpen

In the `addAllVotings()`, the left over ticks/weight will be sent to the last pool, is that an intended design?

LowMissing Emit EventsOpen

There should always be events emitted in the sensitive functions that are controlled by centralization roles.

LowMissing Input ValidationOpen

The finding is proposed based on the commit [086b8b46304d0f7abe69de9130ace21400332d0e](https://github.com/Sigma-Klaytn/sigma-core/tree/086b8b46304d0f7abe69de9130ace21400332d0e) for the `LpFarmV1` contract.\ The given input is missing the check for the non-zero address.

LowMissing Input Validation For `_lpToken`Open

The function `addPool()` of contract `LpFarmV1` does not check whether the passed-in `_lpToken` exists or whether `_lpToken` is the reward token `SIG`. If the owner adds the same LP token mistakenly, the rewards will be messed up.

LowPotential Error Calculation for `user.lockdropAmoOpen

The finding is proposed based on the commit [086b8b46304d0f7abe69de9130ace21400332d0e](https://github.com/Sigma-Klaytn/sigma-core/tree/086b8b46304d0f7abe69de9130ace21400332d0e). for the `LpFarmV1` contract.\ In the function `forwardLpTokensFromLockdrop()` of the contract `LpFarmV1`, each call to this function will reset the corresponding `user.lockdropAmount` to the passed-in value `_amount`. And the `user.lockdropAmount` is checked and determines a user's withdrawable LP tokens when a user wants to withdraw LP tokens by calling `withdrawLockdropLPTokens()`. As a result, this linked statement may cause a user can not withdraw LP tokens or gain fewer LP tokens than deserved. We know the call to `forwardLpTokensFromLockdrop` is limited by the function `forwardLpTokenToLpFarm()` of the contract `LockdropLpFarmProxyV1`, however, the `lockdropProxy` is managed by the owner role and the risk still exists.

LowThird Party DependenciesOpen

These contracts - `KlayswapEscrowV1` - `LpFarmV1` - `SigFarmV1` - `SigKSPFarmV1` - `SigKSPStakingV1` - `SigmaVoterV1` - `xSigFarmV1` are serving as the underlying entities to interact with many third-party protocols: - `IVotingKSP` - `IPoolVoting` - `IFactory` - `IFeeDistributor` - `IxSIGToken` - `IWhitelist` - `IvxERC20` - `IERC20Upgradeable` - `ISigmaVoter` - `ISigKSPFarm` - `ILpFarm` The scope of the audit treats 3rd party entities as black boxes and assumes their functional correctness. However, in the real world, 3rd parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of 3rd parties can possibly create severe impacts, such as increasing fees of 3rd parties, migrating to new LP pools, etc.

LowUnknown Implementation of the `lockdropProxy`Open

The finding is proposed based on the commit [086b8b46304d0f7abe69de9130ace21400332d0e](https://github.com/Sigma-Klaytn/sigma-core/tree/086b8b46304d0f7abe69de9130ace21400332d0e) for the `LpFarmV1` contract.\ We understand that the `lockdropProxy` is required to implement the feature of the protocol, however, its implementation is out of the scope for this audit, and needed to be monitored by the engineer to ensure it is implemented as intended.

Show 2 more
LowUnknown Imported Source FileOpen

The imported source files in the contracts `KlayswapEscrowV1`, `LpFarmV1`, `SigFarmV1`, `SigKSPFarmV1`, `SigKSPStakingV1`, `SigmaVoterV1`, and `xSigFarmV1` are unknown.

LowWrong Value in the EventOpen

The finding is proposed based on the commit [086b8b46304d0f7abe69de9130ace21400332d0e](https://github.com/Sigma-Klaytn/sigma-core/tree/086b8b46304d0f7abe69de9130ace21400332d0e) for the `LpFarmV1` contract.\ The value of the parameter passed to the `WithdrawLockdropLP` event in the `withdrawLockdropLPTokens()` function is zero, which is wrong.

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

  • contracts/Upgradeable/SigKSPStakingV1.sol
  • contracts/Upgradeable/KlayswapEscrowV1.sol
  • contracts/Upgradeable/LpFarmV1.sol
  • contracts/Upgradeable/xSigFarmV1.sol
  • contracts/Upgradeable/SigmaVoterV1.sol
  • contracts/Upgradeable/SigFarmV1.sol
  • contracts/Upgradeable/SigKSPFarmV1.sol

Part of Sigma Protocol’s security record

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

Security firm

CertiK

1,045 projects reviewed · 1,376 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