Gradientprotocol.

CertiKFiles named in the report

CertiK reviewed Gradient Protocol (Gradientprotocol.) on 1 Apr 2024: 6 findings, 0 critical; all acknowledged, none fixed.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings6

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

SeverityOpenAcknowledgedFixed
Critical000
High040
Medium010
Low010
HighCentralization Risks in GradientERC20.solAcknowledged

In the contract `Gradient` the role `AUX_ADMIN` has authority over the functions shown in the diagram below. Any compromise to the `AUX_ADMIN` account may allow the hacker to take advantage of this authority and change fee exempt address, change pair address, change threshold and change fee percentage. ![](https://accelerator-tasks-prod.acc.corp.certik.com/11ee-ed62-835a1180-ba4a-35162ff7c33b/diagrams/centralization_GradientERC20-Gradient-AUX_ADMIN.svg) In the contract `Gradient` the role `DEFAULT_ADMIN_ROLE` has authority over the functions shown in the diagram below. Any compromise to the `DEFAULT_ADMIN_ROLE` account may allow the hacker to take advantage of this authority and change fee exempt address, change pair address, change threshold and change fee percentage, change token receive address and transfer tokens/ETH out of the contract. ![](https://accelerator-tasks-prod.acc.corp.certik.com/11ee-ed62-835a1180-ba4a-35162ff7c33b/diagrams/centralization_GradientERC20-Gradient-DEFAULT_ADMIN_ROLE.svg)

HighCentralized Token Holding Position RiskAcknowledged

In function `_swapTokensByPair`, `GDT` tokens are swapped to `currentPair.base` token, which is set by the admin. These tokens are subsequently sent to the tributeHolder wallet. As a result, over time the tributeHolder address will accumulate a significant portion `GDT`. The mishandling of its private key can have devastating consequences for the project as a whole.

HighInitial Token DistributionAcknowledged

All of the GDT tokens are sent to the contract deployer. This is a centralization risk because the deployer can distribute tokens without obtaining the consensus of the community. Any compromise to the deployer address may allow a hacker to steal and sell tokens on the market, resulting in severe damage to the project.

HighWithdrawal Centralization RiskAcknowledged

In the contract `Gradient`, the owner has the authority to withdraw all tokens from the contract. ```solidity=124 function rescueTokens(address recipient, address token, uint amount) public { require( hasRole(DEFAULT_ADMIN_ROLE, msg.sender) , "Insufficient privileges" ); IERC20(token).transfer(recipient, amount); } ``` Any compromise to the owner account may allow a hacker to take advantage of this authority and withdraw tokens from the contract.

MediumUnreasonable Fee LimitationAcknowledged

The maximum fee rate can be set to 100%, in which case all of the user's transferred Tokens will be swapped and sent to tributeHolder.

LowNo Slippage CheckAcknowledged

A sandwich attack might happen when an attacker observes a transaction swapping tokens or adding liquidity without setting restrictions on slippage or minimum output amount. The attacker can manipulate the exchange rate by frontrunning (before the transaction being attacked) a transaction to purchase one of the assets and make profits by backrunning (after the transaction being attacked) a transaction to sell the asset. The following functions are called without setting restrictions on slippage or minimum output amount, so transactions triggering these functions are vulnerable to sandwich attacks, especially when the input amount is large: - router.swapExactTokensForTokensSupportingFeeOnTransferTokens

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

  • contracts/src/GradientERC20.sol

Part of Gradient Protocol’s security record

Gradient Protocol
Audits1 audit by 1 firmLast audit Apr 2024, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Gradient Protocol’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