Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 8a39136

Browse files
authored
fix: Fix typos (#781)
1 parent bf87c52 commit 8a39136

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Certora/certora/Verification_Report.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ The scope of this verification is Aave's governance system, particularly the fol
1717
* [`ReserveConfiguration.sol`](https://github.com/aave/aave-v3-core/blob/master/contracts/protocol/libraries/configuration/ReserveConfiguration.sol) ([`Verification Results`](https://vaas-stg.certora.com/output/23658/633d0d7547a80788d266/?anonymousKey=83401dd8a786839159d64343adb7c70dd22c9c6c))
1818
* [`UserConfiguration.sol`](https://github.com/aave/aave-v3-core/blob/master/contracts/protocol/libraries/configuration/UserConfiguration.sol) ([`Verification Results`](https://vaas-stg.certora.com/output/23658/6b970f07251caed97b46/?anonymousKey=eec671384cee54c5a44fc278db2a489cb6fc1ddd))
1919

20-
And partial verificaiton of:
20+
And partial verification of:
2121
* [`Pool.sol`](https://github.com/aave/aave-v3-core/blob/master/contracts/protocol/pool/Pool.sol)
2222

23-
The Certora Prover proved the implementation of the protocol is correct with respect to formal specifications written by the the Certora team. The team also performed a manual audit of these contracts.
23+
The Certora Prover proved the implementation of the protocol is correct with respect to formal specifications written by the the Certora team. The team also performed a manual audit of these contracts.
2424

2525
The specification program was modularized to optimize coverage. First, the tokenization contracts were found to uphold to the same properties the [Aave V2](https://hackmd.io/TYI3fetcQgmkAZF_ENSErA) tokenization did, as well as additional properties. On the main Pool contract, the focus of the verification was the protocol's storage of its reserves data, their classification to EModes - a new feature of the V3 protocol - and its compatibility with the user's action. This was done by modularly checking the userConfiguration and reservesConfiguration libraries first.
2626

@@ -101,7 +101,7 @@ Aave is a decentralized non-custodial liquidity markets protocol where users can
101101

102102
## Description of the specification files
103103

104-
The specification contains six files, three for the tokenization part, one for the pool and one for each of the reserve and user configuration contracts. The tokens' contracts have similar specifications, using (up to slight modifications) properties based on Certora's aggregated experience with ERC20 verificartion.
104+
The specification contains six files, three for the tokenization part, one for the pool and one for each of the reserve and user configuration contracts. The tokens' contracts have similar specifications, using (up to slight modifications) properties based on Certora's aggregated experience with ERC20 verification.
105105
On the main Pool contract, the focus of the coverage was the protocol's storage of its reserves data, their classification to EModes - a new feature of the V3 protocol - and its compatibility with the user's action. This was done by modularly checking the userConfiguration and reservesConfiguration libraries first.
106106

107107
## Assumptions and Simplifications
@@ -121,7 +121,7 @@ We made the following assumptions during the verification process:
121121

122122
In this document, verification conditions are either shown as logical formulas or Hoare triples of the form {p} C {q}. A verification condition given by a logical formula denotes an invariant that holds if every reachable state satisfies the condition.
123123

124-
Hoare triples of the form {p} C {q} holds if any non-reverting execution of program C that starts in a state satsifying the precondition p ends in a state satisfying the postcondition q. The notation {p} C@withrevert {q} is similar but applies to both reverting and non-reverting executions. Preconditions and postconditions are similar to the Solidity require and assert statements.
124+
Hoare triples of the form {p} C {q} holds if any non-reverting execution of program C that starts in a state satisfying the precondition p ends in a state satisfying the postcondition q. The notation {p} C@withrevert {q} is similar but applies to both reverting and non-reverting executions. Preconditions and postconditions are similar to the Solidity require and assert statements.
125125

126126
Formulas relate the results of method calls. In most cases, these methods are getters defined in the contracts, but in some cases they are getters we have added to our harness or definitions provided in the rules file. Undefined variables in the formulas are treated as arbitrary: the rule is checked for every possible value of the variables.
127127

@@ -231,7 +231,7 @@ burn(u, u’, x); burn(u, u’, y) ~ burn(u, u’, x+y) at the same timestamp
231231
mint(user, onBehalfOf, amount, index)
232232
{ balanceOf(other) == bbo && (user != onBehalfOf => balanceOf(user) == bbu) }
233233
```
234-
#### 9. Burn zero dosen't change balance ✔️
234+
#### 9. Burn zero doesn't change balance ✔️
235235
```
236236
{ b = balanceOf(user) }
237237
burn(user, 0, index)

Certora/certora/harness/PoolHarnessForConfigurator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ contract PoolHarnessForConfigurator is VersionedInitializable, IPool, PoolStorag
728728
}
729729

730730
/// @inheritdoc IPool
731-
/// @dev Deprecated: mantained for compatibilty purposes
731+
/// @dev Deprecated: maintained for compatibility purposes
732732
function deposit(
733733
address asset,
734734
uint256 amount,

Certora/certora/specs/AToken.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ rule integrityBurn(address user, address to, uint256 amount)
239239
}
240240

241241
assert bounded_error_eq(totalSupplyAfter, totalSupplyBefore - amount, index), "total supply integrity"; // total supply reduced
242-
assert bounded_error_eq(balanceAfterUser, balanceBeforeUser - amount, index), "integrity break"; // user burns ATokens to recieve underlying
242+
assert bounded_error_eq(balanceAfterUser, balanceBeforeUser - amount, index), "integrity break"; // user burns ATokens to receive underlying
243243

244244
}
245245

@@ -271,16 +271,16 @@ rule additiveBurn(address user, address to, uint256 x, uint256 y)
271271
"burn is not additive";
272272
}
273273

274-
rule burnNoChangeToOther(address user, address recieverOfUnderlying, uint256 amount, uint256 index, address other)
274+
rule burnNoChangeToOther(address user, address receiverOfUnderlying, uint256 amount, uint256 index, address other)
275275
{
276276

277-
require other != user && other != recieverOfUnderlying;
277+
require other != user && other != receiverOfUnderlying;
278278

279279
env e;
280280
uint256 otherDataBefore = additionalData(other);
281281
uint256 otherBalanceBefore = balanceOf(other);
282282

283-
burn(e, user, recieverOfUnderlying, amount, index);
283+
burn(e, user, receiverOfUnderlying, amount, index);
284284

285285
uint256 otherDataAfter = additionalData(other);
286286
uint256 otherBalanceAfter = balanceOf(other);

setup-test-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# the deploy library to not find the external
1212
# artifacts.
1313

14-
echo "[BASH] Setting up testnet enviroment"
14+
echo "[BASH] Setting up testnet environment"
1515

1616
if [ ! "$COVERAGE" = true ]; then
1717
# remove hardhat and artifacts cache
@@ -39,4 +39,4 @@ cp -r node_modules/@aave/deploy-v3/artifacts/contracts/* temp-artifacts/deploy
3939
# Export MARKET_NAME variable to use Aave market as testnet deployment setup
4040
export MARKET_NAME="Test"
4141
export ENABLE_REWARDS="false"
42-
echo "[BASH] Testnet enviroment ready"
42+
echo "[BASH] Testnet environment ready"

test-suites/pool-edge.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,8 @@ makeSuite('Pool: Edge cases', (testEnv: TestEnv) => {
632632
expect(await configurator.connect(poolAdmin.signer).initReserves(initInputParams));
633633
const reservesListAfterInit = await pool.connect(configurator.signer).getReservesList();
634634

635-
let occurences = reservesListAfterInit.filter((v) => v == mockToken.address).length;
636-
expect(occurences).to.be.eq(1, 'Asset has multiple occurrences in the reserves list');
635+
let occurrences = reservesListAfterInit.filter((v) => v == mockToken.address).length;
636+
expect(occurrences).to.be.eq(1, 'Asset has multiple occurrences in the reserves list');
637637

638638
expect(reservesListAfterInit.length).to.be.eq(
639639
reservesListAfterDrop.length + 1,

0 commit comments

Comments
 (0)