Klink Finance

CertiKFiles named in the report

CertiK reviewed Klink Finance on 7 Feb 2025: 11 findings, 0 critical; 3 marked fixed, 2 acknowledged, 6 open.

No open critical findings
Open the reportOpen Klink Finance’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings11

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

SeverityOpenAcknowledgedFixed
Critical000
High300
Medium021
Low302
HighCentralization Related RisksOpen

In the contract `klinkStaking`, 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 set the interest rate and lock duration, as well as change the staking status. ![](https://accelerator-tasks-prod.acc.corp.certik.com/11ef-ca0d-1b1a78c0-b4b4-b3610741b761/diagrams/centralization_Staking-klinkStaking-_owner.svg) In the contract `KlinkToken`, 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 burn tokens from a specified account, burn tokens from a specific account, and mint tokens to a specified address. ![](https://accelerator-tasks-prod.acc.corp.certik.com/11ef-ca0d-1b1a78c0-b4b4-b3610741b761/diagrams/centralization_Token-KlinkToken-_owner.svg)

HighCentralized Balance Manipulation Due to UnrestricOpen

In the contract `KlinkToken`, the role `owner` has the authority to update the token balance of an arbitrary account without sanity restriction through the functions `mint()` and `burnFrom()`. ```solidity=36 function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } ``` ```solidity=57 function burnFrom(address account, uint256 amount) public override onlyOwner { super.burnFrom(account, amount); } ``` Any compromise to the owner account may allow a hacker to take advantage of this authority and mint arbitrary amount of tokens to any account.

HighInitial Token DistributionOpen

All of the Klink tokens are sent to the contract deployer on deployment. This is a centralization risk because the deployer or the owner(s) of the EOAs can distribute tokens without obtaining the consensus of the community. Any compromise to these addresses may allow a hacker to steal and sell tokens on the market, resulting in severe damage to the project.

LowIncompatibility With Deflationary TokensOpen

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) into the staking contract, only 90 tokens actually arrive 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.

LowLock Duration MismatchOpen

The contract multiplies `lockDuration` by 3600 (1 hour in seconds). Yet the constructor and function docstrings suggest `lockduration_` is the number of days, which would normally be multiplied by 86400. If the intention is truly to lock for lockDuration days, then using `lockDuration.mul(3600)` is off by a factor of 24.

LowMultiple Staking Rounds LogicOpen

When a user with an existing stake calls stake(amount) again, the contract checks that the current lock has not yet expired: ```solidity require(block.timestamp < deposits[from].endTime, "Lock expired, please withdraw and stake again"); ``` If the lock is still active, the contract recalculates and accrues the user’s existing rewards up to the current time, adds those rewards to `deposits[from].rewards`, and then increases the overall deposit. Notably, this process resets the user’s `depositTime` to the new `block.timestamp` and updates the lock end to `block.timestamp + lockDurationInSeconds`. This design compounds the deposit but also means that if the user had only a short time remaining on their current lock, adding more funds starts a new lock period. Consequently, the user cannot withdraw any part of their stake until the newly established lock expires. Projects should ensure users are aware that depositing additional funds before their existing lock ends will defer their withdrawal window accordingly.

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

  • contracts/Token.sol
  • contracts/Staking.sol

Part of Klink Finance’s security record

Klink Finance
Audits1 audit by 1 firmLast audit Feb 2025, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Klink Finance’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