AMPL audit and security record

Ethereum, Avalanche, Base
+1 chain
  • Ethereum
  • Avalanche
  • Base
  • BNB Chain
ampleforth.orgXGitHub

AMPL has 4 public audit reports from CertiK and Quantstamp; the latest is CertiK, 12 Feb 2021. 55 findings in 4 reports: 42 fixed, 13 open.

Open the latest report

Your label, liveGet it for your site

Trustblock: Last audit Feb 2021. CertiK. 4 reports, 2 firms. 42 of 55 findings fixedLast audit Feb 2021 · CertiK4 reports, 2 firms · 42 of 55 findings fixed

Updated · Trustblock does not review code.

Skip to the sections

The record over time

Bar height: findings in the report · Select a mark to open it

Audit reports 4
Incidents 0
None on record
01 · Reviews

Who audited AMPL?

4reports from 2 firms, Jun 2019 to Feb 2021
55 findings, by severity
Critical
0
High
1
Medium
4
Low
50
Fixed 42Acknowledged 0Open 13Statuses are each firm’s own.
LowOpen as of Feb 2021Potential of Zero TransferCertiK, Feb 2021

Certain tokens throw when a zero-value transfer is attempted, meaning that the unstakeAndClaim mechanism may break if all bonus tokens of such a token have been claimed.

Report ↗
LowOpen as of May 2020Possible Named Declaration of Return VariableCertiK, May 2020

The “externalCall” function returns a variable of type “bool” as stated in its function signature. Internally, an in-memory variable is declared called “result” of type “bool” which is assigned the result of the low-level “call” invocation and then explicitly returned as the last statement of the function body

Report ↗
LowOpen as of May 2020Potential Optimization of Transaction CreationCertiK, May 2020

This Exhibit relies on whether Exhibit 2 is applied on the codebase. If Exhibit 2 is applied, this Exhibit can be safely ignored. In the aforementioned line, whenever a new “Transaction” struct is constructed the hard-coded value of “true” is assigned to its “enabled” member. This will presently cause a 32-byte write operation to be conducted as the memory needs to be initialized to a non-zero value.

Report ↗
LowOpen as of May 2020Potential Out-of-Gas ExceptionCertiK, May 2020

The loop included in the aforementioned lines iterates through an array of dynamic size that could potentially lead to the function being impossible to execute if many transactions are included or if the gas cost of the transactions collectively exceeds the block’s gas limit.

Report ↗
LowOpen as of May 2020Potentially Misleading Event VariableCertiK, May 2020

The “TransactionFailed” event contains a “uint” variable that represents the index of the transaction that failed. However, this variable may be misleading under certain circumstances as transaction ordering in Ethereum is up to the miners of the blocks. As an example, should a single block contain the following transaction ordering, the “index” variable will be misleading and lead to an out-of-bound access on both the previous and current block of the blockchain: 1. Inclusion of new transaction in transaction queue. This will increase the transaction queue length and add the final transaction to the end. 2. Execution of “rebase” and failed execution of the newly included transaction, leading to the “TransactionFailed” event being emitted with the “index” variable being the last element of the array. 3. The deletion of the last transaction in the transaction queue. This will decrease the transaction queue length and remove the final transaction that was previously executed but failed. The above sequence will lead to an “index” being emitted that is otherwise inaccessible. The above scenario, although unlikely, can occur should the owner of the contract accidentally include a transaction and attempt to remove it with users invoking “rebase” in the process.

Report ↗
Show all 13 ↓
LowOpen as of May 2020Transaction Struct OptimizationCertiK, May 2020

The “Transaction” struct included on the Orchestrator contract can be optimized to occupy one less slot, significantly reducing the gas cost of all types of transactions relating to it such as read and write operations.

Report ↗
LowOpen as of May 2020Unnecessary “delete” CallCertiK, May 2020

Whenever the “length” of an array is reduced, Solidity internally calls the “delete” operator on the last element of the array and as such, it is unnecessary to explicitly call it.

Report ↗
LowOpen as of May 2020Unnecessary Declaration of Variable in Function NCertiK, May 2020

The “externalCall” function contains a “transferValueWei” variable in its signature referring to the amount of wei that will be transferred in the external call. This function is labelled as “internal” and is only invoked in a single location, line 55, where the “transferValueWei” argument is hard-coded as zero.

Report ↗
LowOpen as of May 2020Unnecessary initialization of variableCertiK, May 2020

The aforementioned line contains an assignment of the zero value casted to an “address” type to the “orchestrator” variable of the contract. This type of assignment is unnecessary as Solidity, akin to many other programming languages, assigns a default value to uninitialized variables which in the case of addresses is the zero address.

Report ↗
LowOpen as of May 2020Unnecessary Memory Transmission of Bytes LengthCertiK, May 2020

The “externalCall” function contains a “dataLength” variable in its signature referring to the length of the “bytes” dynamic array that will be transferred in the external call. This is unnecessary because, as mentioned in comment line 138, the length of the “bytes” is already included in the variable at the first location of the “bytes” pointer.

Report ↗
LowOpen as of May 2020Unusual Function Naming ConventionCertiK, May 2020

The function “transactionsLength” is meant to return, as its name implies, the “length” of the “transactions” storage array. It is generally considered ill-practise to declare a dot-accessor in camel-case format as the function name.

Report ↗
LowOpen as of Jun 2019Block Timestamp ManipulationQuantstamp, Jun 2019

Projects may rely on block timestamps for various purposes. However, it's important to realize that miners individually set the timestamp of a block, and attackers may be able to manipulate timestamps for their own purposes. If a smart contract relies on a timestamp, it must take this into account.

Report ↗
LowOpen as of Jun 2019gon balances may become untransferable over timeQuantstamp, Jun 2019

The functions transfer() and transferFrom() take value that signifies the number of tokens to transfer. Both functions compute the corresponding number of gons and use them to update the ledger. It is possible that the value of _gonsPerFragment becomes large enough (due to constantly increasing target rate) so that gonValue exceeds the account balance even if value equals 1. Such a transfer will fail on SafeMath.sub(). Consequently, the source account will have a non-zero gon balance that will be untransferable. Theoretically, a large number of gons can be dispersed among multiple accounts in too low quantities, so all those gons will become unspendable.

Report ↗
Latest AMPL audit reports
Ampleforth's Token Geyser v2 · CertiK · 1 high · 2 medium · 20 lowXCAmpleforth · CertiK · 2 medium · 12 lowAmpleforth · CertiK · 10 lowAmpleforth · Quantstamp · 8 low
All 4 AMPL audit reports
ReportSecurity firmDateScopeCritical findingsFindingsSource
Ampleforth's Token Geyser v2Security firm: CertiKDate: Scope: Files listedNone openFindings: 1 high · 2 medium · 20 low
22 fixed · 1 open
skynet.certik.com ↗
XCAmpleforthSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 2 medium · 12 low
14 fixed
skynet.certik.com ↗
AmpleforthSecurity firm: CertiKDate: Scope: Not recorded; see the reportNone openFindings: 10 low
10 open
skynet.certik.com ↗
AmpleforthSecurity firm: QuantstampDate: Scope: Files listedNone openFindings: 8 low
6 fixed · 2 open
certificate.quantstamp.com ↗

Components, version by version

Most reviewed first
Ampleforth2 reportsCertiK, Quantstamp
Filled: a published report. Dashed: none from that firm.
Jun 2019
May 2020
CertiK
Quantstamp

Also reviewed: Ampleforth's Token Geyser v2 (CertiK), XCAmpleforth (CertiK)

02 · Control

Who can change it?

Contracts6

AddressChainSource code
0x489fe42c267fe0366b16b0c39e7aeef977e841efChain: BaseSource code: Verified source (partial match, checked 13 Sep 2026)
0xedb171c18ce90b633db442f2a6f72874093b49efChain: EthereumSource code: Verified source (exact match, checked 13 Sep 2026)
0x77fba179c79de5b7653f68b5039af940ada60ce0Chain: EthereumSource code: Verified source (partial match, checked 13 Sep 2026)
0xdb021b1b247fe2f1fa57e0a87c748cc1e321f07fChain: BNB ChainSource code: Verified source (partial match, checked 13 Sep 2026)
0xd46ba6d942050d489dbd938a2c909a5d5039a161Chain: EthereumSource code: Verified source (partial match, checked 13 Sep 2026)

All 6 addresses and the files the reports name

05 · Incidents

Has AMPL been hacked?

0incidents on record
06 · Protection

What protects AMPL day to day?

Bug bounty · platform, largest reward, scopeNot recorded yet
Operational security · certifications heldNot recorded yet
Monitoring · Teamcoming soon

AMPL security: common questions

Is AMPL audited?

Trustblock holds 4 public audit reports for AMPL, dated 13 Jun 2019 to 12 Feb 2021. The latest is by CertiK (“Ampleforth's Token Geyser v2”).

Who audited AMPL?

2 security firms wrote the reports Trustblock holds for AMPL: CertiK and Quantstamp.

Are there open findings in AMPL’s audits?

55 findings in 4 reports: 42 fixed, 13 open. No critical finding is reported. Statuses are the security firms’ own.

Has AMPL been hacked?

No incident is on record for AMPL. Public incident reports, last checked 30 Nov 2026.

How this record is made. Public reports from each firm and what the chain itself answers, each read twice and compared with the original. No score, no grade. Method and limits · Something wrong? Tell us