SithSwap
AMM

SithSwap is a Starknet AMM for volatile and stable swaps with low fees and non-upgradable contracts. We reviewed about 6,000 lines of code, including its custom math library, which we tested against a simpler reference version.
report id
0057
category
DeFi & Yield
language
Cairo
final report
October 7, 2022
lines of code
4721
Content

Download audit report

1

Executive Summary

This document presents the security review performed by Nethermind on the SithSwap Protocol. SithSwap is an AMM protocol featuring instant volatile and stable swaps with low fees and the full security of Ethereum. Contracts are not upgradable and the only privileged action is changing the swap’s fee which is capped by the protocol, demonstrating a high level of decentralization. The reviewed codebase is composed of approximately 6000 lines of code. Development of this project was correctly supported with a considerable test suite using different frameworks like Protostar, Ape, and also by the use of the static analyzer Amarna.

The SithSwap team developed a library supporting the protocol core math operations in a more efficient way than using vanilla Uint256 operations. This library was manually reviewed, and differential testing techniques were applied in order to find differences between it and the original and simpler implementation.

Overall, the codebase shows very good code quality. The SithSwap team provided documentation and an already tested version of the protocol written in Solidity. Beyond documentation, the team was very responsive and collaborative during the assessment.

During this review, we point out 43 issues, none of which are High or Critical severity. Two of these issues were marked as false positives for a final amount of 41 issues. The distributions of issues can be seen in Figure 1. Most of the Medium severity issues are related to not enforcing correct values for Uint256 at different layers of the protocol. Even though the previously mentioned issues do not represent risk to funds at the current time, the affected functions are part of a library and may be used in following iterations in an unsafe manner.

Audit assessment
Audit TypeSecurity Review
Initial ReportSep. 26, 2022
Response from ClientSep. 29, 2022
Final ReportOct. 7, 2022
MethodsManual Review, Differential Testing
RepositorySithSwap Protocol
Commit Hashes (Initial Audit)947ef38a0c
Commit Hashes (Math Library V3)e1e6a925f0
DocumentationAvailable here
Documentation QualityHigh
Test Suite QualityHigh
Total findings
41
Fixed
39
Acknowledged
2
Mitigated
0
Unresolved
0

Findings by severity

  • Critical0
  • High0
  • Medium11
  • Low5
  • Informational25
  • Best Practices0

2

Audited Files

Files reviewed in commit 947ef38a0cf72749473c065431f2f1b4c7bd2b73.

#ContractLoCCommentsRatioBlankTotal
1contracts/cairo/sithswap/libraries/utils.cairo59711.9%874
2contracts/cairo/sithswap/libraries/Reentrancyguard.cairo20210.0%527
3contracts/cairo/sithswap/libraries/SafeERC20.cairo1715.9%321
4contracts/cairo/sithswap/libraries/SithMath.cairo2965317.9%33382
5contracts/cairo/sithswap/libraries/SafeMath.cairo32825.0%545
6contracts/cairo/sithswap/libraries/ERC20Library.cairo2312711.7%61319
7contracts/cairo/sithswap/libraries/SithStrings.cairo8811.1%998
8contracts/cairo/sithswap/libraries/Strings.cairo1231411.4%36173
9contracts/cairo/sithswap/libraries/SafeUint256.cairo1402014.3%18178
10contracts/cairo/sithswap/libraries/Initializable.cairo2229.1%529
11contracts/cairo/sithswap/libraries/SafeOwnable.cairo77810.4%19104
12contracts/cairo/sithswap/libraries/array.cairo834250.6%20145
13contracts/cairo/sithswap/amm/fees/SithSwapV1Fees.cairo181794.4%742
14contracts/cairo/sithswap/amm/fees/library.cairo39410.3%1255
15contracts/cairo/sithswap/amm/fees/interfaces/ISithSwapV1Fees.cairo7114.3%210
16contracts/cairo/sithswap/amm/math/L02/SithSwapV1Library02.cairo17495.2%14197
17contracts/cairo/sithswap/amm/math/L02/library.cairo19542.1%18217
18contracts/cairo/sithswap/amm/factory/SithSwapV1Factory.cairo1216452.9%23208
19contracts/cairo/sithswap/amm/factory/library.cairo13375.3%28168
20.../sithswap/amm/factory/interfaces/ISithSwapV1Factory.cairo34411.8%1856
21contracts/cairo/sithswap/amm/pair/SithSwapV1Pair.cairo36016245.0%61583
22contracts/cairo/sithswap/amm/pair/library.cairo105790.9%1131179
23contracts/cairo/sithswap/amm/pair/interfaces/ISithSwapV1Pair.cairo12254.1%57184
24contracts/cairo/sithswap/amm/router/SithSwapV1Router01.cairo17413678.2%23333
25contracts/cairo/sithswap/amm/router/SithSwapV1RouterLibrary.cairo44581.8%39492
26contracts/cairo/sithswap/amm/router/library.cairo16031.9%9172
27.../sithswap/amm/router/interfaces/ISithSwapV1Router01.cairo9744.1%20121
Total432462214.4%6665612

Files reviewed in commit e1e6a925f07fac8d5622db7cc792729f917fc3db.

#ContractLoCCommentsRatioBlankTotal
1contracts/cairo/sithswap/amm/math/L03/SithSwapV1Library03.cairo161106.2%35206
2contracts/cairo/sithswap/amm/math/L03/library.cairo2362711.4%18281
Total397379.3%53487

3

Summary of Issues

#FindingSeverityUpdate
1.1Storage variable naming convention may be insecureInfoFixed
1.2Use of 0 and 1 instead of TRUE and FALSEInfoFixed
2.1External initialization functionLowFixed
3.1Lack of argument validation in SithSwapV1Factory.create_pair(...)MediumFixed
3.2Missing check whether _compute_address is correctInfoFixed
4.1Lower execution cost opportunity in claim_fees_for(...) functionInfoFixed
5.1SithSwapV1Pair.approve(...) function is inconsistent with the ERC20 standardLowFixed
5.2Unsafe approval changeLowFixed
5.3Imprecise inline documentation for SithSwapV1Pair.approve(...)InfoFixed
5.4Imprecise inline documentation for SithSwapV1Pair.renounceOwnership(...)InfoFixed
5.5Incomplete inline documentation for SithSwapV1Pair.initialize(...) functionInfoFixed
5.6Incomplete inline documentation for SithSwapV1Pair.sample(...) functionInfoFixed
5.7Inconsistent variable namingInfoFixed
6.1set_trade_fee() function does not correctly check the new valueMediumFixed
6.2SithSwapV1Pair.set_trade_fee() freeze period is not applied to all casesLowFixed
6.3Event missing in function set_trade_fee(...)InfoFixed
6.4Misspelled variablesInfoFixed
6.5Unchecked conversion from felt to Uint256InfoFixed
6.6Underflow may occur in _get_conditional_observation(...) functionInfoFixed
6.7Use of magic numbers for feesInfoFixed
7.1Assumption of correct Uint256 type argumentsMediumFixed
7.2Non-uniform style of accessing namespace-encapsuled functionsInfoFixed
8.1Function initialize(...) is not emitting an eventInfoFixed
9.1Function felt_add(...) may be insecureMediumFixed
9.2Function felt_mul(...) does not check for overflowMediumFixed
9.3Function felt_sub(...) may be insecureMediumFixed
10.1Inconsistent function naming formatInfoFixed
11.1Missing input validation in SithMath functionsMediumAcknowledged
11.2Functions using is_le(...) may be insecureMediumFixed
11.3Incorrect check in function sub_lt(...)MediumFixed
11.4Error message misspellingInfoFixed
11.5Function sith_div(...) does incorrect check for the signInfoFixed
11.6Math operations suboptimal performanceInfoFixed
11.7Simplyfying conditional branching may save number of stepsInfoFixed
12.1Constructor argument is not validatedMediumFixed
12.2Code duplicationInfoFixed
12.3Unsafe conversion from felt to Uint256 typeInfoFixed
12.4Non-uniform coding styleInfoFixed
13.1Incorrect computation in _get_y_inner_kconv(...) functionMediumFixed
13.2Function calculate_sample(...) may return false resultLowAcknowledged
13.3Commented code in calculate_sample(...) functionInfoFixed

4

System Overview

No system overview is included in this report.

5

Risk Rating Methodology

The risk rating methodology used by Nethermind Security follows the principles established by the OWASP Foundation. The severity of each finding is determined by two factors: Likelihood and Impact.

Likelihood measures how likely the finding is to be uncovered and exploited by an attacker. This factor will be one of the following values:

  1. High: the issue is trivial to exploit and has no specific conditions that need to be met;
  2. Medium: the issue is moderately complex and may have some conditions that need to be met;
  3. Low: the issue is very complex and requires very specific conditions to be met.

When defining the likelihood of a finding, other factors are also considered. These can include but are not limited to motive, opportunity, exploit accessibility, ease of discovery, and ease of exploit.

Impact is a measure of the damage that may be caused if an attacker exploits the finding. This factor will be one of the following values:

  1. High: the issue can cause significant damage, such as loss of funds or the protocol entering an unrecoverable state;
  2. Medium: the issue can cause moderate damage, such as impacts that only affect a small group of users or only a particular part of the protocol;
  3. Low: the issue can cause little to no damage, such as bugs that are easily recoverable or cause unexpected interactions that cause minor inconveniences.

When defining the impact of a finding, other factors are also considered. These can include but are not limited to data and state integrity, loss of availability, financial loss, and reputation damage. After defining the likelihood and impact of an issue, the severity is determined according to the table below.

Impact / LikelihoodLowMediumHigh
HighMediumHighCritical
MediumLowMediumHigh
LowInfo / Best PracticesLowMedium
UndeterminedUndeterminedUndeterminedUndetermined

To address issues that do not fit a High, Medium or Low severity, Nethermind Security also uses three more finding severities: Informational, Best Practices, and Undetermined.

  1. Informational findings do not pose any risk to the application, but they carry some information that the audit team intends to pass to the client formally;
  2. Best Practice findings are used when some piece of code does not conform with smart contract development best practices;
  3. Undetermined findings are used when we cannot predict the impact or likelihood of the issue.

6

Issues

6.1 General

6.1.1 Storage variable naming convention may be insecure

FileFix commitTypeStatus
contracts/cairo/4c5db4bInfoFixed

Currently some contracts are not following recommended guidelines for storage variable naming. Importing two libraries which contain storage variable named exactly the same in both, may result in storage clashing. It is a good practice to prefix a storage variable name with a unique name (e.g. a namespace that uses this storage variable) to avoid storage clashes.

Recommendation

Consider prefixing the name of the storage variable with the name of the namespace that the variable is used by.

Resolution

Fixed in commit 4c5db4b8288313c00866dbf886448c4669f33325.

6.1.2 Use of 0 and 1 instead of TRUE and FALSE

FileFix commitTypeStatus
contracts/cairo/4fccc6dInfoFixed

Some expressions are written comparing with 0 or 1 when expecting values that are boolean semantically. For example, checking if a pair is stable or not. In other places of the codebase TRUE and FALSE are used, this affects code consistency and readability.

Recommendation

Change the code to use TRUE and FALSE on these cases.

Resolution

Fixed in commit 4fccc6d847d74bd7017d4acafee55485880c4d58.

6.2 contracts/cairo/sithswap/amm/factory/factory/SithSwapV1Factory.cairo

6.2.1 External initialization function

Function SithSwapV1Factory.init(...) can be called by anyone after contract is deployed. This could allow an attacker to quickly call this function after contract deployment getting ownership of the contract.

Recommendation

  • Consider doing contract deployment and initilization in only one transaction;
  • Check that contract state is as expected after initialization call;

Resolution

Fixed in commit b820cae36b308a423f74b41d4504d6124c38079d.

6.3 contracts/cairo/sithswap/amm/factory/factory/library.cairo

6.3.1 Lack of argument validation in SithSwapV1Factory.create_pair(...)

The stable input argument in function SithSwapV1Factory.create_pair(...) is not validated to ensure it is a boolean. Passing a value outside of the range [0, 1] may lead to unexpected behavior. During pair creation, if the argument stable is passed a value other than 1 the pair will be marked as volatile. In other parts of the protocol a pair is determined whether it is stable or not by checking if stable is zero. This means that if a pair is initialized with a value other than 0 or 1 it will be marked as volatile but will behave as a stable pair.

Recommendation

  • Consider checking if the stable argument is within the range [0, 1];
  • Consider making stable checks consistent rather than comparing against 0 in some places and 1 in others.

Resolution

Fixed in commit 3230bc760fd176a2553b7a1ff1bfe7aa42c88dc8.

6.3.2 Missing check whether _compute_address is correct

The function _compute_address is used in some areas in the protocol to compute the address of a specific pair. Starknet is an evolving ecosystem and in the near future there may be subtle changes in how contract addresses are computed. If this happens, functions relying on _compute_address may not work anymore with the newly deployed pairs.

Recommendation

Consider adding a check in create_pair(...) to ensure that the address returned from _compute_address is the same as the address where the pair was deployed.

Resolution

Fixed in commit c7d49a368a379e0a8088385ed7d7a63b1ccaa395.

6.4 contracts/cairo/sithswap/amm/fees/library.cairo

6.4.1 Lower execution cost opportunity in claim_fees_for(...) function

Function claim_fees_for(...) transfers claimed amounts of token0 and token1 to the recipient address. However, there is no check to ensure that amount0 and amount1 are greater than zero. This may lead to sending 0 tokens and making the cost of executing the claim_fees_for(...) function higher.

Recommendation

Consider transferring tokens in claim_fees_for(...) only if amounts are greater than zero.

Resolution

Fixed in commit 566bed20f134c47291131ee3f900532c730e32d3.

6.5 contracts/cairo/sithswap/amm/pair/SithSwapV1Pair.cairo

6.5.1 SithSwapV1Pair.approve(...) function is inconsistent with the ERC20 standard

The SithSwapV1Pair.approve(...) function does not return a value. However, the ERC20 standard states that the approve(...) function should return a boolean value indicating success. This could cause failures or unexpected behavior when integrating with other protocols.

Recommendation

Consider returning a value in SithSwapV1Pair.approve(...) to indicate a successful approval.

Resolution

Fixed in commit 09d452e66ed30479236bd9fb7198588c5f0ab86b.

6.5.2 Unsafe approval change

The user is allowed to change allowance for LP tokens. This can only be done by calling SithSwapV1Pair.approve(...) function. Due to the ERC20 approval race condition attack vector, it is recommended to increase token allowance with the increase_allowance(...) function, and decrease token allowance with the decrease_allowance(...) function.

Recommendation

Consider implementing increase_allowance(...) and decrease_allowance(...) functions to increase and decrease token allowance respectively.

Resolution

Fixed in commit 622486cadfa535cd2d9c4c2936593ece21cadd07.

6.5.3 Imprecise inline documentation for SithSwapV1Pair.approve(...)

Inline documentation of SithSwapV1Pair.approve(...) function states that the function "Increases allowance to spender for amount". This description is misleading, since the function sets the allowance.

Recommendation

Consider rephrasing existing description of SithSwapV1Pair.approve(...) function.

Resolution

Fixed in commit 029c9c481c5c0a0ec6a0ef13d58ec1402ef5185f.

6.5.4 Imprecise inline documentation for SithSwapV1Pair.renounceOwnership(...)

Inline documentation provided for the SithSwapV1Pair.renounceOwnership(...) function states "This forever removes Pair ownership altogether, except if a Factory owner still exists". The second part of the description does not accurately explain behavior of the function. When ownership of the Pair is removed, it cannot be restored regardless of existence of the owner of the Factory contract. Imprecise documentation may create false assumptions and lead to confusion.

Recommendation

Consider rephrasing the description of the SithSwapV1Pair.renounceOwnership(...) function to match its behavior.

Resolution

Added Pair.reviveOwner() function to allow Factory owner assign new owner to Pair and inline comments updated. Fixed in commit bb0b3cddbcd5edb5e4b983d713754a2225c7c909.

Update from Nethermind Security

The new function Pair.reviveOwner() would allow the Factory owner to change the owner of any pool at any point in time. This was raised to SithSwap team and the pros and cons of different solutions were analyzed, concluding that this was the design that better aligns with the protocol needs.

6.5.5 Incomplete inline documentation for SithSwapV1Pair.initialize(...) function

The SithSwapV1Pair.initialize(...) function lacks inline documentation for stable, fee and fees input arguments.

Recommendation

Consider adding descriptions for missing function arguments.

Resolution

Fixed in commit d12d3e452a222c06d3e096459e272cc2b97668fc.

6.5.6 Incomplete inline documentation for SithSwapV1Pair.sample(...) function

The SithSwapV1Pair.sample(...) function lacks inline documentation for window input argument.

Recommendation

Consider adding descriptions for missing function arguments.

Resolution

Fixed in commit 07e9bf398b22ef60b948a06629fde6285f6c1d28.

6.5.7 Inconsistent variable naming

Function SithSwapV1Pair.transferOwnership(...) has an argument named direct, which is the flag to specify whether the ownership transfer should happen immediately. However in SithSwapV1Factory.transferOwnership(...) and SafeOwnable.transfer_ownership(...) functions, this flag is called atomic. Providing consistent naming of variables holding the same functionality across the codebase increases readability.

Recommendation

Consider renaming the direct/atomic variables to be consistent across the contracts.

Resolution

Fixed in commit c79a018e03caf3d8a27e54c58ffb44d469c3a688.

6.6 contracts/cairo/sithswap/amm/pair/library.cairo

6.6.1 set_trade_fee() function does not correctly check the new value

The set_trade_fee(...) function should only allow fee values lower or equal than 3000. This check is shown in the following code snippet.

with_attr error_message("SithSwapV1Pair::set_trade_fee: illegal fee"):
assert_le(_fee, 3000)
end

The assertion done by assert_le will pass for values where 3000 - _fee is lower than 2128. For large _fee values this will be true, allowing for fees greater than 3000. If the set fee is large enough, fees computed from swaps can be larger than the actual amounts sent to the pool, which can cause liquidity to be drained to the fees contract. Fees can be changed only once in a period of 31 days, causing the pool to be in an invalid state for this amount of time.

Recommendation

Use the assert_le_felt() function for checking if the new value is lower than 3000.

Resolution

Fixed in commit 073880bc8c79a768e8236ad6b20d92d08cb2af8b.

6.6.2 SithSwapV1Pair.set_trade_fee() freeze period is not applied to all cases

The specification for SithSwapV1Pair.set_trade_fee() states "Both Factory and Pair owner can set it, but only once every 31 days.". This freeze period is only enforced when the caller is the Factory owner and there exists a Pair owner, making the implementation inconsistent with the specification.

Recommendation

Ensure that the fees can only be changed once within the defined time period for all cases, or update the specification to match the existing function logic.

Resolution

set_trade_fee(...) implementation and specification were updated. Fixed in commit 4913c2ced9b8da691b19ca51a2cbc20e4e0f9ac9.

6.6.3 Event missing in function set_trade_fee(...)

The function set_trade_fee(...) is not emitting an event when the fee is changed. Emitting events is useful for monitoring and debugging purpose. It is a good practice to emit an event after state changes.

Recommendation

Consider emitting an event on fee update.

Resolution

Fixed in commit e1e6a925f07fac8d5622db7cc792729f917fc3db.

6.6.4 Misspelled variables

The function last_observation(...) contains the misspelled variable observation_lenght. Function _get_conditional_observation(...) contains the misspelled variable _observation_lenght.

Recommendation

Consider renaming misspelled variables.

Resolution

Fixed in commit 32f106d39258a67f590f66fd4802aeb654a6a90e.

6.6.5 Unchecked conversion from felt to Uint256

The function _k(...) converts variables decimals0 and decimals1 to Uint256 type without checking if decimals0 and decimals1 are less than 2128. This may lead to invalid Uint256 numbers if decimals0 or decimals1 are greater than 2128.

Recommendation

Consider checking if conversion decimals0 and decimals1 to Uint256 results in valid Uint256 type number.

Resolution

Fixed in commit 6ca10d50106604da1a60e6cfec521e4ce53af471.

6.6.6 Underflow may occur in _get_conditional_observation(...) function

The function _get_conditional_observation(...) contains the expression _observation_lenght - 2. If _observation_lenght is less than 2 this will lead to overflow which may result in unexpected behavior.

Recommendation

Consider checking if _observation_lenght is greater than 1.

Resolution

Fixed in commit 3e697e90a12ae50ad600f829e863258ea46f22f4.

6.6.7 Use of magic numbers for fees

It is a good practice to use named constants instead of values in the code. The maximum value for fees and also the value representing a fee of 100% (100000) are used directly in the code rather than using a constant.

Recommendation

Consider using a constant for these values.

Resolution

Fixed in commit 9c6238ebc7735cc74a3617505c9ca42f4c0fc550/

6.7 contracts/cairo/sithswap/amm/router/SithSwapV1Router01.cairo

6.7.1 Assumption of correct Uint256 type arguments

The functions in the SithSwapV1Router01 contract assume that arguments of Uint256 type are correct - i.e. that members low and high are integers within the range [0, 2128). However the validity of Uint256 type arguments are not checked for functions in SithSwapV1Router01. This is also not checked in most internally called functions. This may lead to unexpected behavior and break functionalities of the protocol.

Recommendation

Consider checking if arguments of Uint256 type are correct by using the uint256_check(...) function.

Resolution

Fixed in commit ae6255e8c3f2eec8ee056abd211169cf7c510366.

6.7.2 Non-uniform style of accessing namespace-encapsuled functions

The functions SithSwapV1Router.add_liquidity(...), SithSwapV1Router.swap(...) and SithSwapV1Router.swap_supporting_fee_on_transfer_tokens(...) are referencing functions through the SithSwapV1Router namespace. Below we reproduce simplified example:

namespace SithSwapV1Router:
#...
func add_liquidity{syscall_ptr : felt*, pedersen_ptr : HashBuiltin*, range_check_ptr}(...) -> (...):
#...
let (reserve_a, reserve_b) = SithSwapV1Router.get_reserves(token_a, token_b, stable)
#...
end
#...
end

We observed presented style of referencing only in SithSwapV1RouterLibrary.cairo file. Using multiple styles could decrease readability.

Recommendation

Consider unifying referencing style across the codebase.

Resolution

Fixed in commit cefdfb8428bc7676d58b76ddc9df73e266dbbe45.

6.8 contracts/cairo/sithswap/libraries/Initializable.cairo

6.8.1 Function initialize(...) is not emitting an event

An event should be emitted upon contract initialization. Emitting an event on important state changes is a good practice and may can help with post-deployment application monitoring and debugging.

Recommendation

Emit an event for the initializing operation.

Resolution

Fixed in commit fa1bd055c732a61d3ffa7aa30f046d569c27bc0b.

6.9 contracts/cairo/sithswap/libraries/SafeMath.cairo

6.9.1 Function felt_add(...) may be insecure

The function felt_add(...) may revert even if addition is done properly. The function is_le(...) is used to check if a is less than or equal to the sum of a and b with the intention of failing on overflow. is_le(...) in fact only checks if b - a is within the range [0, 2128). This could cause failures even when there is no overflow.

An example of arguments that cause failure without overflow in felt_add(...) are: a = 1 and b = 2128 leading to c = 2128 + 1. The function would revert even though a < c, since the difference c - a = 2128 is out of the range [0, 2128) and therefore is_le(...) would return FALSE.

Recommendation

Consider replacing is_le(...) with is_le_felt(...) function which assumes arguments in range [0, P).

Resolution

Fixed in commit 73eab1b189c05ddd8366491a115bc79b535e3d98.

6.9.2 Function felt_mul(...) does not check for overflow

The functions SafeMath.felt_add(...) and SafeMath.felt_sub(...) check if overflow occurred, however SafeMath.felt_mul(...) does not check for this. It may create confusion since developers using SafeMath could assume that felt_mul(...) would also check for overflow.

Recommendation

Consider checking for overflow in function SafeMath.felt_mul(...).

Resolution

Fixed in commit e1e6a925f07fac8d5622db7cc792729f917fc3db.

6.9.3 Function felt_sub(...) may be insecure

The function felt_sub(...) may revert even if subtraction is done properly. The function is_le(...) is used to check if b is less than or equal to a with the intention of failing on overflow. is_le(...) in fact only checks if a - b is within the range [0, 2128). This could cause failures even when there is no overflow.

An example of arguments that cause failure without overflow in felt_sub(...) are: a = 2128 + 1 and b = 1 leading to c = 2128. The function would revert even though b < a, since the difference a - b = 2128 is out of the range [0, 2128) and therefore is_le(...) would return FALSE.

Recommendation

Consider replacing is_le(...) with is_le_felt(...) function which assumes arguments in range [0, P).

Resolution

Fixed in commit ce8fffdd498597f389446a20c5583618e0c72225.

6.10 contracts/cairo/sithswap/libraries/SafeOwnable.cairo

6.10.1 Inconsistent function naming format

The function SafeOwnable.pendingOwner(...) is formatted in camel case style. Recommended style for function names in Cairo is snake case. Other functions in this contract are formatted in snake case style. It is good practise to keep naming style consistent for readability.

Recommendation

Consider reformatting SafeOwnable.pendingOwner(...) function name to snake case.

Resolution

Fixed in commit 89e0a12bfd6e9ced0c587e7cb26a69b3e05a9230.

6.11 contracts/cairo/sithswap/libraries/SithMath.cairo

6.11.1 Missing input validation in SithMath functions

FileFix commitTypeStatus
contracts/cairo/sithswap/libraries/SithMath.cairo2b90e72MediumAcknowledged

The functiosn sith_add(...), sith_sub(...), sith_div(...), sith_div_1e18(...), sith_mul(...), sith_mul_1e18(...) does not ensure that the arguments x and y are valid Uint256 values. These functions can return unexpected results for invalid Uint256 values.

This does not put funds at risk because arguments received by this function are checked in external functions in the pair contract. However, as functions are part of a library they may be used in following iterations of the code and could potentially cause issues.

Recommendation

Consider checking if arguments are valid Uint256 values with check_uint256(...).

Resolution

Input values for these functions should be checked before calling them. A header was added to the library for making it clear to anyone using these functions. The header was added in the commit 2b90e7278f401c1e6ecfd18370787451640d3436.

6.11.2 Functions using is_le(...) may be insecure

The functions sith_add(...), sith_small_mul(...), normalize_decimals(...) and normalize_decimals_inv(...) are using the is_le(...) function which checks if the difference between the second and first arguments are within the range [0, 2128). If this difference is larger than 2128 - 1 then result from is_le(...) is FALSE, even if first argument is lesser than the second one. We present exmaple of such unwanted behavior below:

assert is_le(1, 2 ** 128 + 2) = FALSE

Recommendation

Consider replacing is_le(...) with is_le_felt(...) function that checks if a <= b, where a and b are in range [0, P).

Resolution

Fixed in commit a6033222d35c175b798374d61a98b75c20d7e3c6.

6.11.3 Incorrect check in function sub_lt(...)

The function name sub_lt(...) implies that it subtracts two uint256 values however the function can only return 0 or fail. If the arguments x and y are both equal to each other the call to the function will pass but for any other value it will fail. The function is shown below.

func sub_lt{range_check_ptr}(x : Uint256, y : Uint256) -> (res : Uint256):
let (res : Uint256) = sith_sub(x, y)
let assert_res_positive = (res.low + 1) * (res.high + 1)
with_attr error_message("StihMath: lt-substraction equal zero"):
assert assert_res_positive = 1
end
return (res=res)
end

Recommendation

Assuming that the function sub_lt(...) should fail if x <= y, it should assert that res is not zero.

Resolution

Fixed in commit e985aa630e885a6ef55ad93c5dd831f165eca2a9.

6.11.4 Error message misspelling

The error message is mispelled. Below we present an example of mispelling:

error_message("StihMath: ...")

Recommendation

Consider replacing StihMath with SithMath in error messages.

Resolution

Fixed in commit 71b37d73c36ac81f68f161a5e6cce84a1c33398e.

6.11.5 Function sith_div(...) does incorrect check for the sign

The function sith_div(...) was introduced to lower cost of execution for the division operation. If the provided argument x (divident) is less than 2125, the function sith_small_div(...) is used, since it is optimized for dividing numbers within the range [0, 2125)). If x is higher than 2125 division is done by uint256_unsigned_div_rem(...) function from the standard library.

Since comparison is done by subtracting 2125 from x.low and checking if sign(y_sub_125) is equal to 0, sith_small_div(...) is only used if x is equal to 2125 because sign(...) returns 0 only when argument is 0.

func sith_div{range_check_ptr}(x : Uint256, y : Uint256) -> (res : Uint256):
alloc_locals
# checking if y.low < 2^{125} to call sith_small_div
local y_sub_125 = y.low - 2 ** 125
let (local y_sub_125_sign) = sign(y_sub_125)
if y.high == 0:
if y_sub_125_sign == 0:
let (res : Uint256) = sith_small_div(x, y.low)
return (res=res)
end
end
let (local res : Uint256, _) = uint256_unsigned_div_rem(x, y)
return (res=res)
end

Recommendation

Consider changing condition checks for running sith_small_div(...) in sith_div(...) function.

Resolution

Fixed in commit 401de8f6d26c9c39b3bf4d2ddc2e160c01c4dd3a.

6.11.6 Math operations suboptimal performance

Addition (sith_add(...)) and multiplication (sith_mul(...)) functions are suboptimal with comparison to the functions from standard uint256 library. The sith_div(...) division function is suboptimal for numbers higher than 2128.

Recommendation

Consider usage of functions from standard uint256 library for addition, multiplication and division operations.

Resolution

Fixed in commit 71b37d73c36ac81f68f161a5e6cce84a1c33398e.

6.11.7 Simplyfying conditional branching may save number of steps

Functions sith_add(...), sith_sub(...), sith_mul_1e18(...), sith_mul(...) and sith_div(...) are currently using nested branching to check if numbers are equal 0. We reproduce the described example below:

if x.high == 0:
if y.high == 0:
local low_add = x.low + y.low
let (carry) = is_le(2 ** 128, low_add)
let low = low_add - (2 ** 128 * carry)
let high = carry
return (res=Uint256(low, high))
end
end

Nested branching is not a good practice since it reduces code readability. It is also not an optimal solution since every branch increases the number of steps.

Recommendation

Consider refactoring nested conditional branches into one branch with multiple conditions. We present example of such comparison below:

if a == 0 and b == 0:
...
end

This solution may be more readable and saves small number of steps.

Resolution

Fixed in commit 4977b5dcb84d21d2c2c14f3e40e5c2fb4795d056.

6.12 contracts/cairo/sithswap/amm/math/L03/SithSwapV1Library03.cairo

6.12.1 Constructor argument is not validated

The input argument _factory is passed to the constructor, but is never validated. It is not possible to change the provided factory address later in the code. Passing 0 or an incorrect address would put the system in an unusable state where it is not possible to recover and the contract will have to be re-deployed.

Recommendation

Consider checking if the passed address is not 0 in order to reduce chances of incorrect deployment.

Resolution

Fixed in commit 2a34ead431c52d7d3556a4178dc1d8d03f59df70.

6.12.2 Code duplication

The functions getTradeDiff(...) and getTradeDiffByPair(...) are similar in functionality and therefore partly share the same code. It is a good practice to not duplicate the code.

Recommendation

Consider refactoring code so the aforementioned functions do not contain duplicated code.

Resolution

Fixed in commit 1b867334062633621bbfb7e8bbf88f957c51b9b4.

6.12.3 Unsafe conversion from felt to Uint256 type

The functions getTradeDiff(...), getTradeDiffByPair(...), getSample(...), getMinimumValue(...) and getAmountOut(...) convert variables d0 and d1 to Uint256 type without checking if d0 and d1 are less than 2128. This may lead to invalid Uint256 values if d0 or d1 are greater or equal to 1128.

Recommendation

Consider checking if conversion d0 and d1 to Uint256 results in valid Uint256 type number with function uint256_check(...) or by checking if d0 and d1 are less than 2128.

Resolution

Fixed in commit 6ca10d50106604da1a60e6cfec521e4ce53af471.

6.12.4 Non-uniform coding style

Contract SithSwapV1Library03 wraps all the functions in the SithSwapV1Library03 namespace. This approach is different than the rest of contracts in the project. Keeping a uniform style across the codebase increases readability.

Recommendation

Consider unifying style of contracts across the codebase.

Resolution

Fixed in commit 5fbc54694cab4da0de56324fe2eda803f8074c18.

6.13 contracts/cairo/sithswap/amm/math/L03/library.cairo

6.13.1 Incorrect computation in _get_y_inner_kconv(...) function

The function _get_y_inner_kconv(...) should return size_flag equal to 0 when it converges and size_flag equal to 1 when it does not converge. When calling this function, if no base condition is met, the function will call itself recursively and will always return 1 for the size_flag value.

Value size_flag returned by _get_y_inner_kconv(...) is checked in get_y(...) and if it is other than 0 it will fail. This creates scenarios, in which get_y(...) will fail even with convergence over k.

Described function is shown below:

func _get_y_inner_kconv{range_check_ptr : felt}(
x0 : Uint256, xy : Uint256, y : Uint256, size : felt
) -> (res : Uint256, size_flag : felt):
alloc_locals
if size == 0:
return (res=y, size_flag=1)
end
let (local k : Uint256) = SithSwapV1Library.f(x0, y)
let (local sign_sub_k_xy) = uint256_le(xy, k)
let (local new_y : Uint256) = _calculate_new_y(sign_sub_k_xy, x0, xy, y, k)
local k_dif = k.low - xy.low
if k_dif == 1 and k.high == xy.high:
return (res=new_y, size_flag=0)
end
if k_dif == 0 and k.high == xy.high:
return (res=new_y, size_flag=0)
end
let (local res, _) = _get_y_inner_kconv(x0, xy, new_y, size - 1)
return (res=res, size_flag=1)
end

Recommendation

Consider refactoring _get_y_inner_kconv(...) function to return the size_flag value returned by the recursive call.

Resolution

Fixed in commit bd3da5e573a49f106a069788edbeba65d049535b.

6.13.2 Function calculate_sample(...) may return false result

FileFix commitTypeStatus
contracts/cairo/sithswap/amm/math/L03/library.cairo—LowAcknowledged

The function calculate_sample(...) may incorrectly return 0 under certain conditions. calculate_sample(...) multiplies the reserve amount of the first token by the decimals of the second token, and then the product is divided by the reserve amount of the second token. We reproduce described function below:

func calculate_sample{range_check_ptr}(
order_flag : felt, r0 : Uint256, r1 : Uint256, d0 : Uint256, d1 : Uint256
) -> (res : Uint256):
alloc_locals
if order_flag == 1:
# let (d1_pow) = pow(10, d1)
let (t1) = SithMath.sith_mul(r0, d1)
let (res) = SithMath.sith_div(t1, r1)
return (res=res)
end
# let (d0_pow) = pow(10, d0)
let (t2) = SithMath.sith_mul(r1, d0)
let (res) = SithMath.sith_div(t2, r0)
return (res=res)
end

When the decimal values for the two tokens differ, a rounding error may occur. In the following example we present values that would lead to incorrect result:

r0 = 10         # Reserve amount token 0
d0 = 10 # Decimals token 0
r1 = 10000 # Reserve amount token 1
d1 = 100 # Decimals token 1
order_flag = 1

With data above, calculate_sample(...) would perform the computation r0 * d1 / r1, which would be evaluated as 10 * 100 / 10000. The result of the computation in this case would be 0. This result is incorrect since the r0 to r1 ratio (denominated in d0 and d1 respectively) is 1:100, not 1:0. This may lead to false result of computation.

Recommendation

Consider normalization of the both tokens reserve amounts before computing the ratio.

Resolution

The function in question is only accessed by a UI helper contract, furthermore, the conditions required by the issue are practically impossible to occur under any economically meaningful scenario.

6.13.3 Commented code in calculate_sample(...) function

The function contain lines of commented code. It is a good practise to remove commented code.

func calculate_sample{range_check_ptr}(
order_flag : felt, r0 : Uint256, r1 : Uint256, d0 : Uint256, d1 : Uint256
) -> (res : Uint256):
alloc_locals
if order_flag == 1:
# let (d1_pow) = pow(10, d1)
let (t1) = SithMath.sith_mul(r0, d1)
let (res) = SithMath.sith_div(t1, r1)
return (res=res)
end
# let (d0_pow) = pow(10, d0)
let (t2) = SithMath.sith_mul(r1, d0)
let (res) = SithMath.sith_div(t2, r0)
return (res=res)
end

Recommendation

Consider removing commented parts of the code.

Resolution

Fixed in commit 5e549079804ad63dd47db1c6475b9b10132ea23f.

7

Documentation Evaluation

Software documentation refers to the written or visual information that describes the functionality, architecture, design, and implementation of software. It provides a comprehensive overview of the software system and helps users, developers, and stakeholders understand how the software works, how to use it, and how to maintain it. Software documentation can take different forms, such as user manuals, system manuals, technical specifications, requirements documents, design documents, and code comments. Software documentation is critical in software development, enabling effective communication between developers, testers, users, and other stakeholders. It helps to ensure that everyone involved in the development process has a shared understanding of the software system and its functionality. Moreover, software documentation can improve software maintenance by providing a clear and complete understanding of the software system, making it easier for developers to maintain, modify, and update the software over time. Smart contracts can use various types of software documentation. Some of the most common types include:

  • Technical whitepaper: A technical whitepaper is a comprehensive document describing the smart contract’s design and technical details. It includes information about the purpose of the contract, its architecture, its components, and how they interact with each other;
  • User manual: A user manual is a document that provides information about how to use the smart contract. It includes step-by-step instructions on how to perform various tasks and explains the different features and functionalities of the contract;
  • Code documentation: Code documentation is a document that provides details about the code of the smart contract. It includes information about the functions, variables, and classes used in the code, as well as explanations of how they work;
  • API documentation: API documentation is a document that provides information about the API (Application Programming Interface) of the smart contract. It includes details about the methods, parameters, and responses that can be used to interact with the contract;
  • Testing documentation: Testing documentation is a document that provides information about how the smart contract was tested. It includes details about the test cases that were used, the results of the tests, and any issues that were identified during testing;
  • Audit documentation: Audit documentation includes reports, notes, and other materials related to the security audit of the smart contract. This type of documentation is critical in ensuring that the smart contract is secure and free from vulnerabilities.

These types of documentation are essential for smart contract development and maintenance. They help ensure that the contract is properly designed, implemented, and tested, and they provide a reference for developers who need to modify or maintain the contract in the future.

8

Remarks & Test Suite

The documentation is sufficient for the purpose of this audit. The team provided an high level documentation for the protocol which is publicly accessible. The team also provided multiple files explaining the purpose of most of the externally accessible functions together with a diagram explaining expected interactions between different contracts in the protocol.

Documentation was provided for the SithSwapV1Library03 library explaining its structure, approach and motivation. All the questions that were unanswered by this document were quickly addressed by the SithSwap team through communication channels.

Beyond these files, the code contains comments in a NatSpec format for the functions that will be accessible for the users. These comments describe the function purpose, arguments and return values.

Alongside the documentation, a reference implementation written in Solidity was provided to assist the audit team in verifying that the Cairo contracts function as intended. During the assessment, the SithSwap team created new documentation about different tests done for checking performance of the new math library or fixing found issues.

The protocol presents an extense test suite using multiple frameworks like Ape, and Protostar. The CI pipeline tests run on every commit pushed to master and 03 branches.

Below, we present output of the different test suites.

7.1 Ape Cairo (math)

,! /home/runner/.cache/pypoetry/virtualenvs/sithswap-C2YYCxzA-py3.9/bin/python

,! 0x02B83B23905401a1d1C3344BfACE17c61A4C33460Dd9cfd9ff5c013ED728a8ee

,! 0x06bF4181Bba833eee7970383Db20c1705bBd131dF81E2625B994Ceb832e5A611

,! 0x022187b74eEe0130a1aAa55672a32B7ad19cbC1A02FB9686dda691F75EeB6AF7

7.2 Ape Cairo (core - Factory)

,! /home/runner/.cache/pypoetry/virtualenvs/sithswap-C2YYCxzA-py3.9/bin/python

,! 0x04B185474DccF279364C857F6f84c9dDFBC42EDd359a5B803e8a67D97e6786Ee

,! 0x0083A8212751e0570aCaDc3f036Afaf8d2004179F693c47612a7b2c26A2a72A6

,! 0x0239C9A21b22c4fF89C575FD8f1769f7Ae731aA48395f420446C900beB2C8C26

,! 0x056CF9DEf9e782A35308f801D53350004692aBeb3F3BB95DA48de95A0B9bC1d6

,! 1006727601243700892941852200205990445460895297133611583085895965642792406054, 1000000000000000000,,! 1000000000000000000]

7.3 Ape Cairo (core - Pair)

,! /home/runner/.cache/pypoetry/virtualenvs/sithswap-C2YYCxzA-py3.9/bin/python

,! 0x05C120c30b1E7BCE301f2b7B31527FE9D84132AdBE27d7B364d1A0b30f148032

,! 0x01b125Bb85DD8C3aF06c89e0ae0d29Fc92e5C20720Ca50456a92E44b3D56f2bC

,! 0x0688B12caaE1a1d052dA0aD17EB839992d674aFDA97D7873Aa3c7eA36b3fe080

,! 0x067Af6e6027e91038a67236BF1B5669952994d311dFACbbC1a3257d30282941b

,! 0x056b36c6a25a181B6F5fa51A8Be87e6A24e6DAc1F26a2bc9E39Be30D0ebaC584,! 0x033E9987eEd05d25d886D9326bfe98b5BebeD0216542CD7ED7cD5Cd8EEAbc2E4

,! 0x0036097F130c9d533f5446022789a9a8fe7DeACA03e8400f21DF191c98D1c7a9

,! 0x04E57fc9f41E7b0910e5f37F835FD73D45a743459898599986b3149d4F719dd4

,! 0x05186fcb24e0071AFAfB5485992FFa8A371688A255F0Be79CA88E9FA7E82C665

,! 0x01A360d754e17D4bAbFD0C37cfF12CB9Aa75471c7535d3ff8AdB5c13b62aDFc8

,! 0x07fbB7E177d489cD07bb2B978eC020Bc5f024626D059ee2d3b94cd1e1f4d71F5

,! 0x01358A3984c6ADe7296cBa3F4ed463844B5bB22f48Ec61d8E5a481dD478a6eae

,! 0x033fb67Ca0eda12002dF9F80B40a5AAdCd4392cb435F1aBB00f49Eb01a39a837

,! 0x07B7d0318eBEDe78B83640330c954b6Dc63e226f72121e4b00Cec2bb80Aa4dA5

,! 0x0255A5eBc58d9A44D5144c3a98be364BC31d50a7a2234c79295644dF70Eb1255

,! 0x050B3e176000ebfe112932d1442b81777Bf7d4cA72198C3362347FD5e67e5510

,! 0x05835f1e4e6FE7967B55fb5919470475D07C19B7D96580C82898fBC1feBab004

,! 0x01642f83E18d35cC83a00291dBb0aF033B13F29bB2511D7E1A0a3aF3BF911B61

,! 0x03Cc24F9601D3EFB1bBDe96637d340BfA03C3F0A72bDB551A8362e692Cfe34bc

,! 0x0632bAE4BC2916cB16caEB17206F6b2d4A0066CCEa25C8E944132ec59eae129b

,! 0x04065da6123a42676a71b394959bc2Af7C62f340c0Bc7E22D661Df57b1E418fd

,! 0x008Bed2FB74525dc329279fC9bbB74e908248Ab72BC5f598eBD9ad2668BbD124

,! 0x022ED72457a63130a249a01B2f48099b19c0dA88346002130d6263df51d21f14

,! 0x04d05178a3c77Aeb5A946f0a72516322be71c4490E758B0D9114AC9C43923738

,! 0x07E7B394FCf8a287eECd26CFaC48691b5a75C0d89C985548e350eD8d75239950

,! token1=3575571041355833708217273971872973683755041875975401923011372645690879744336 stable=0 fee=307,! fees=1045568970102940113652135638643153037927174049741617453250073929451083017054,! pair=3135781077296899234763469442732410337579313501099689062689494681380304790644),! 0x02fa4500d66a72cE2953B64F5cb129dD69a55cADC60a6b1D09aED87a863D0707

,! 0x05Ea252672F8D0Fa305e8a7AD7DaA5fd5Ee4c54E066848718f3DdBfA11396195

,! token1=2675262857275236823917645272414965280665738836874418196470364108053070569877 stable=0 fee=975,! fees=876612305263430244562615401930649236855674683634718692535270565634260845709,! pair=1262798733103352357749441224498444770585427376920882489084516610043443385518)

,! token1=2675262857275236823917645272414965280665738836874418196470364108053070569877 stable=1 fee=975,! fees=579233392680206698933938593237924112454518070261356757472476202274547148780,! pair=2148789402966402637965249575310557879362947403373376320338088656065863126392)

,! 0x01c095faC0123C0AD672dc9Dc8bD6d8de07c67ba5897D59fCb3438fB98e7E0D0

,! 0x052Bd12BAB739b9a3706C84F0883263bD8E9957Db52389637962a33e28305176

,! 0x01aeF63DD3b3b854052Ba0bE04A3f812ccA179745D61A4BB126F350E7a406CC5

,! 0x03a94c9A8822e56c5429CdaC02e1e250E567fCeb4c756926fbBD7AfCd6c298D5

,! 0x06D1e6525fcC639ecF5fCAE1503663418150d41191eae204532E7c43094F3B6A

,! 0x03a35737C1dcB078734214f0904adc921168800A31b93d0dFfCD73fd0C0052fa

,! 0x07f464CeE0f979a6FeFA2c1fBa8e2E224607Ac5eB7aa42AF1C75f2f4Ce23168a

,! token1=3084737750502417715815997701015094377541114771671703249146998305860522818410 stable=1 fee=1000,! fees=59132603475485344281862828611700746552855073825529237144238628002224123542,! pair=284675851365187228438622497961776976929167124315805325472317525485253551347)

,! token1=1656064398588316065329731528919649287552253620428325098345876136403522459861 stable=1 fee=1000,! fees=576186668551259898431357833398368198108338699952360378366200504436662481009,! pair=2108147394888780438711573152143680370331555419947847265582938474185960824968)

,! token1=3597996375965064464646456826605088628072407775099611735435426564686269847178 stable=1 fee=1000,! fees=3526291280064367015824738369835270719747055937610104670519523698538791371429,! pair=120649969013720336713854823569118866550684431215900267120867315658337128609),! 0x050b24176dB8809f65E9aaBd743c109b5d60Bb5064aBA01f76a1045a8E676e1D

,! 0x063691b3432311246ca22A79f67DFA4aC86226F79d4934DE753536D71D696c02

,! 0x00133e4800D1Aed9d77Ba13029D28735Cb2d8a706A8F1Ea74596369F7bd0643a

,! 0x04bbb9A2224c0d7f5F1cbc20F7DB3449c353d9580344190A45BBC7d3cb482927

,! token1=2810292419118718389007135953843573629100225938301543572201263578421289118722 stable=1 fee=1000,! fees=2981085112482264041685411863161550462500572606073299157003616827022313286463,! pair=3111757240544120184791802268517734182003489665039431799686125004154689081933)

,! token1=2281248655131091664390343549052985618091652104978093795068313800429319712285 stable=1 fee=1000,! fees=2495384326918274444796888477132468399003118012033236072051594480822831356558,! pair=1109026167386599381185329717214530469073428924527239357255785019085317114584)

,! token1=2810292419118718389007135953843573629100225938301543572201263578421289118722 stable=1 fee=1000,! fees=2927283477187544733265675795834377090433629799735972862963672233763709003459,! pair=1083643232306964244636057107650512173402297929703643412541636238341566422183)

,! 0x06b0b82E7E0984C51384A61E3f72840F6Ce3ACC809a6C133be7B6F12ed7738c2

,! 0x01be6eEe54501859ac781C9c74c3e99E8dC055B2c999a9E3C8f8F33217821227

,! 0x06AC0223577A66358BE25714AE0477a17e5FBe7cc7C02b77A8fF5d23D5008387

,! 0x011FbF695Cd579Fa751c79b0895a00f6C25d60B91Cb04173159636101763C355

,! token1=3026113349659214613294570051274454795717993384716459711380249609989887834306 stable=1 fee=1000,! fees=179442625138314212292335240101317342213377925411140202167603360580564939753,! pair=1505143427551979296783239042705737079665510573595426669317178228210755988393)

,! token1=3026113349659214613294570051274454795717993384716459711380249609989887834306 stable=1 fee=1000,! fees=445642858406588526738280900830224086269531316953930213655167752682034076060,! pair=197385095587559310432499791129582413921560258007679726101015852612645459187)

,! token1=788779408335794875572316257599221581103632225656168028983560115616808571431 stable=1 fee=1000,! fees=1650128807747667093530682133643256101760998390796946791488828663700158414922,! pair=924091894969900536588097088546221004971509719860308406597104194681023985152)

,! 0x01F79097219a180eE2df91D6BC6E1F65f8b624382E04d81F28696bfa526bC3a1

,! 0x05Efd754Cc0c822b9Fde2bf667A4a13a8027d2274898D8A9DCfb22f32c8D1Df7

,! 0x00F3BB3f5850b891A4B156333D42FA3906b1Fe79fdDA6fe8B83BC52b8D7fFE84

,! 0x079924fDd902656C446b1650c356bE8426301C9B2629A02881DdD81Ee7a3Dc36

,! token1=2685326852987298998343776602956445352837564506743650824147502356326523936247 stable=1 fee=1000,! fees=1629893274628033001551046444305110040900800883657475288786877019577260412317,! pair=2814031319678217819726511664774964110651187645689088297030117339797939569452)

,! token1=889721999548108109187055944421285604754857399324878891803887287187066831777 stable=1 fee=1000,! fees=2327763350368104608682637043587879505671845548614307552678395501930739642969,! pair=1045051632287030905395054223754392709727762161484571314095685413835278669206)

,! token1=3436772847582701795150369098763645031003355575693595704647674550442275363894 stable=1 fee=1000,! fees=2992684847860070692695289133179759899999847567052410500494270113915886696683,! pair=2550076950622893756512345827463050103717652990911719364093774098581464898475),! 0x05274F9E5906295F7164ABc2894E9b40F28429c9958903894F2388F8084F5f2f

,! 0x0394396067777780D6F2AA6Ac221F46db9FeE6620776EB3cdAaD78130C9a70dd

,! 0x0741918E1338FD4DC240087a96dB7fB85299777d4a81ddFE0A414eB241e0c23d

,! 0x024CA384620e42222A77f31cD5cd63490F11DF5e59F7EB0074B3659c49C83Aa0

,! token1=2331020785450987493963109510122136878266173251738737078769181552752876019503 stable=1 fee=1000,! fees=575808404299282588343655801631268133329389133507473775105901873980942448110,! pair=1400435142044886385250965680370493199557104528763171033533549294276346108238)

,! token1=3282039582850548716106326235691494420321679271124272593024293091277059179069 stable=1 fee=1000,! fees=3318340843650657949268578769504071629941370393502387393614375266384111766395,! pair=1944405330869609233427329610427377565575023484645639156654207789609818310792)

,! token1=1618827909929958991304097126334837598741992298409128107676939464633581465821 stable=1 fee=1000,! fees=1343596993432531129712528198873077169481581289642037579708430758510562439830,! pair=1232782110535825733902118238962848160267583968327719573975284970873469898794)

,! 0x0461992046C15038E31A422d86A60E33F294eC822e3B64877c1fc21f0D81dd66

,! 0x0683F92D9532ddA572E95959A4DA8118Df83dCB99f4578C43C6aDFc8e24BDF35

,! 0x078D9f2A127ebD100756A380909e5909689097cbfe3B32A00E48b33049be1609

,! 0x07E5e0fBd18A82a953862Ad98D9134D6876E679702cBdE157889A5372FC492A1

,! token1=2947053820735973987005944679855113855987050169691764961944418298392497348405 stable=1 fee=1000,! fees=2572423292678240598035665324934484965759414787062335415326308518187458621055,! pair=1453381931367415290261329957342942811641582755510268511639218110917158654854)

,! token1=3416413888151275084547165474919464644687997721204386496900178966144373102089 stable=1 fee=1000,! fees=3383271925435320315898551104966179500500476447603163724438626339741366542971,! pair=381147526488477488477800626967777926493509263923978775302060544656046330306)

,! token1=3572350698112658101966803433583776997463767010874460564472696310346807546529 stable=1 fee=1000,! fees=2252088306244681117414555903221569731172560064155251515258431081830222635092,! pair=2558165937876897818627860127219362012478954223950985407874465285030215311124)

,! 0x01524C592D59CF2Be327eDc5d31dAc86dEc854E0ABBaFE6382EB31D05Cb468b0

,! 0x011a1b153C315546e478890f61b152666B8372c004C0a42153F33D87b70DD8c7

,! 0x0748769C7EdFA9061cd145c248F46Da15b7b5E781B42dc0399222CF1e5d0D5C4

,! 0x031EB43278c7eab8847bABCe4230Ef7bDf1f8F8AE11fbD788e77411560Ec98a3

,! token1=597721244828701875799796014173742034041562884198001973652472336729813313712 stable=1 fee=1000,! fees=1781732172933801064419987851150577391971838075157118465885910088711831913438,! pair=1685767840730413019093072679232265161767810054655790471267906917699726150403)

,! token1=3294221553928866992577547078318581176741737788319670599760118370834507158980 stable=1 fee=1000,! fees=574376677993119440183241268590487467325292553042541799499543819086588707443,! pair=2329022460711564904852233202629804021616043391989433197846092405129976379471)

,! token1=1411187632752622387712343636141985160836009364042796392767867831652755216547 stable=1 fee=1000,! fees=582104040605499239441184146221586066196820348968726022344076306635719672656,! pair=877321343677119225308730357830761761208838935692695726319025519123804232077),! 0x05389b6D21203a1b94431fB7Bc3ebC41220521A49a7C6E3780c266Be2A4cE795

,! 0x02b8296366B8F00424BB9DFF955dD4ea76a52ec5a49BfDCA1C2E4e1C5831b0E1

,! 0x04aa42dC7881a661c447a45dCb480AD4A638d73857a000a93A80A17b65b87D1f

,! 0x044F996d2749845d63aB2d94c322DeE5BBABFc0d422C71572047733a3a4ABA0A

,! token1=2361580391350423758174724785955016811797899499031578302017765960984650639253 stable=1 fee=1000,! fees=2742688742900831496545235532194784277323582462810027225381441962148203960425,! pair=2846386265947334928095400641318642326902874464148742521557270053663488492832)

,! token1=2361580391350423758174724785955016811797899499031578302017765960984650639253 stable=1 fee=1000,! fees=2239862993380278958556823448145545586440371895338683529335672447054913341296,! pair=938563106546342967363702911018190594450951438594476121047038178940731737979)

,! token1=1949891222413226126490606685576533194498679463032225574692319015779724605962 stable=1 fee=1000,! fees=1702015165425428045479889454473871163486478552655691198897621390147363796705,! pair=756530865448023841532343550153440143097414224798365647585633821682035317155)

,! 0x03a86Ba178D45643060DF7F1e356E69C2DC0e6a5098992b551266fB12c465d3A

,! 0x0269f1b117830e7296295408155644920073aB04cAc2A929f5637667FE436D6e

,! 0x03dF955Cf44f5AF7Ad62e123BbdF297d2A2deA453DcB7AF020C30A883789Fe3b

,! 0x01DE0E243A6b37Bd0F3387c26B97624E822B4208E48Bd9b15f20880f63c55c08

,! token1=1654511692767913093219195280759132884687760024649385143400314275706301734202 stable=1 fee=1000,! fees=1478292203603923959659214105348799445126384015760627269957080791195570159477,! pair=3161960014741424407481309043509761291636646348153457498353725306829497690944)

,! token1=1751976307444988103734814461508615822284320610969104197241418137276636593723 stable=1 fee=1000,! fees=327574753472604172166090909684481200859074983600310104594547781184792241846,! pair=2769243119740638995985283338352381681303425909987640332430037682656897776873)

,! token1=1091812734224495941922159999907651438311484013381520802372929248832342158702 stable=1 fee=1000,! fees=416944532941759514160581957816538976582519456143834437857090980563545359362,! pair=620625501144562390396542055628483650475430674268393620753336837076006167968)

,! 0x00691c0319B400086E50a60095469BdACFa859b42f61ad0e4418e84C2C87E898

,! 0x00DC57718D0d76C79DE1D644C53c29Fa89BAFD72117cbe576AaCad08f9Ed6501

,! 0x0470D2Dc540f54af7769Cc6A70370F38a4DF9707A9907A672ec60d98318cDE24,! 0x07e21f5bc892E5B799Cb0A5259d00f3457EB055a66EC9685e5f2e6f00331FB7B

,! 0x069aAa3fc9632893761Ac314176ECF268c2d78FDeFaE7FCCA66be4D9b56f357a

,! token1=3565713805337565186631136876301751651178936341741522459048698537799167638395 stable=1 fee=1000,! fees=2680953065912004406865249272887008939549147080936649261861366076931054636753,! pair=2776229452233634045925264930440005457106469710475034812194337418291196269524)

,! 0x0708Ed3041dBb9A05a54cCfb20815aCc4ADD5d27EE39FaD56C668e4196Eb15Cb

,! 0x061d44006111eE8A5377E1d4477F232008A5C33E3f14E2927FFFe6dCE4dF4a6D

,! token1=3181961731498409803157202296656308221453814194496013525592548762756322104779 stable=0 fee=307,! fees=1578084195430024000897065345231479335215746012485646065885361378560465759880,! pair=2761469113037428470453826616130688007548595398266260863120205516615980982783)

,! 0x0657BE0334614a1A91c9541D2602188C4D4BCa4fE1AC3e64C87A1AA0d1Cc5FB2

,! 0x02b090c5FF47C25f32B32E25624f174236e925FA1b6191c5872D4C7f9945dF8b

,! token1=2868904204337309707959830172241454969961970869128243632474023678928680148914 stable=0 fee=975,! fees=2562390593456832716587966000067974613140119873351852464939952417301214122093,! pair=2748556619774448995852572239183267449597766521727736329014138695276812346145)

,! 0x04B8Bed97d69EB2A8D890BCB810Da56A602345855D3315b1c6Fb31c8845b56fd

,! 0x03bA9395d94F283C877C2C88c448CB95481b63Ed9F18A72d0FC054EB50388417

,! token1=2135668449574214099693511518327534597562002031362589830133728636449479939837 stable=0 fee=307,! fees=2342579489251035196796703653401397582905694408652784336139415792584570055293,! pair=1802376386152733973480121158080292515495088266663388535652893916097945757585)

,! 0x0011CC2E93c4A6Ed9715E21f3063E827d7CA19e541e0cfB6e49c3387B455ab2d

,! 0x0770C93a5f5760a457EBb70A798DccF48Ae2f29556048394599EfA799Fa20eD4

,! 0x03B324f68D72Af1e0F1e808317fFDBade4fbeD122B8426aD1f74D54105fF1CED

,! token1=3365465636071268091872394157110347317843110007750452830616945222398096051924 stable=0 fee=307,! fees=727017791626065954706556966816721256855895282058458820699511876695328135248,! pair=2149456793663304744552882542254844033724129850770072561268905532785734016751)

7.4 Ape Cairo (ext. core - VLP)

,! /home/runner/.cache/pypoetry/virtualenvs/sithswap-C2YYCxzA-py3.9/bin/python

,! 0x07567ABA96969F3b86EADe3EE682a793e882B9E93494A022622d73962282d980

,! 0x0779660e57074D41CF70FCD8012e50a5D34057A9600ba5dc1826bBECD413EA74

,! 0x0263458f302F3A2aB1Af328054C322cc2641c9b78a12c608A1d0feb7fF0A72d6

,! 0x02D61BA06F616A5cB049dA9CDd49dC27280D9b1E5F17A610EaC9eD36bd8e4dc6

,! 0x00B4AbBb14fd3AC2E399eCaC8f230893602e3742fED3e05E3B03d5AF1c81Db94

,! 0x04F4147e5BeA7e4Dbe175f101138aDea75dAaBB1253838e67F34f3D4ADF53295

,! 0x007edc01221f40EE80F5B4Ca397306b31C937f557183A2A032fcc970B9f8a023

,! 0x0674fafAa510aaf01858E5a0398F2e08E0b22EDBebbb232827De8d07b5AaCd30

,! 0x0759D1EeE7aa44D2457c7c4943e55dE925906E376962d5314f97C3caeAa86cB7

,! 0x03E343aa1d91162c36B8b888d70BA6eF850aE7C3F3835dC01124BDCaea32bBEC

,! 0x0290f409E36fC1B3942F575A735E1BAC10F47CC30D4e9D77Fa3Ae76DA134A48e

,! 0x07832f372A75335718585525B2CD2Fb1dd3adb522B20f184f3eA5216ca4DeB2A

,! 0x071F20db6cd944E4276810E471f6620721EeE6316c06fDc75aB8179669D53A0B

,! 0x05fCEe1d90a6C7E12E9ec4F183CDF7D48a9D2CedB027291947D5Ff4FF26dCcF1

,! 0x01Ac6f923AF306ae11cdB7Dcc1041117799563d4fb4E8F166E260DA1C877521b

,! 0x000515Ff9a7064dDA0432032b156DD5897061996bc288b15B25975f15e12D158

,! 0x00e96adcF8D1D7c3254e085c007E9C63f80CB4F9E5BDF1E23D0daFf85A7e7294

,! 0x0406abF5D307A7414b53Cbc1BcAeC89dB28d1BD28190337b96833660b5b9699c

,! 0x07C490a0239A183813911e009B95f3fdE7d78C2a9511356f162B92bBC6C0AEF9,! 0x068C05557d21D9F4b205e8b60cfa6fe11Ff0402dF09589D888E76c5b60d1a69b

,! 0x015dAAF1CD9C984143A706d95cd60323fD9731b3d0cf43191120FF427FBCa5E0

,! 0x0541ADcCC5Bb7306D8AF589Af577983261Be0De9D92B8f77f16FA5CaDd05a560

,! 0x013435a59098Aea273105f806F4659beF976E827111fE0161231bAE6f94b41c5

,! 0x04Dd1c53F5E1b2Dbe291C38ED45A0cf226E59CCc8B59386E03C23Ca3B1C7c9b1

,! 0x02595f1E2DA45fCa8Ff363d044D10E97725F23a71F77a085760f82E8Ac05770f

7.5 Ape Cairo (ext. core - SLP)

,! /home/runner/.cache/pypoetry/virtualenvs/sithswap-C2YYCxzA-py3.9/bin/python

,! 0x07C7935cd208b309e2626baE0D54DFe94d5cB950eA6073D12806466D035cC772

,! 0x041E204b3b0B1D616c4832ebe8dc8057A2386Bf6e21999186891941a8B4f69DA

,! 0x031a6B892c853b92A2d5E5AF86e78CB292e0C78F84F9eACdF4424491E8f6E137

,! 0x016FA8eE6726A1B0dd1be51Fd601D6648ecC3F08E452781BFa664243e0E9f98f

,! 0x07C2eC43e540F74B1F90fbe77B2c00C1ac8FA0bb6bEcDeECcf80B524fD6016Ec

,! 0x0354d5D9B29a6f45ABe181C498a940Bf534947DdB613Ae137E8f385aEbc73Af2

,! 0x03457c468794Ef6C0375457Ac106CeBcb18370D059f44678ea6694e6D84A2094

,! 0x00377180423849Ce7F68C97a26F6bA866d72F008311D3d337c6a6Ae80368b5b4

,! 0x0357c473aDCeB650BC7B3B55E59AAfE3BB96172012B9Df9263C808cc13ea9F1e

,! 0x06A574e4F177cf14F0eD8DF7e76B40B06F4C0C3f3322139A92ae1f5796A8B961,! 0x0430a477055c6559423fE48dbFBE8c02bEfb392816d7993E2dac2B9c151510A4

,! 0x036FFc689611edFe09956464516272e142d5e70c8959167cd519F5dC5ca9495F

,! 0x04bFA4692EcF0D66F2f84c6d01a9e45eb9C0C7FF7A2886CE7CeFaeCF28f68F3C

,! 0x0784B5BD8bE9d0AeEE97dC9619F0F78Ecf6E7B5B9A69aFD0dB8A00eB43fAf585

,! 0x04585b015703c5f3112FE4628498e27f28BE12F5143A03207AefC5B863Ba731F

,! 0x05dA0035F09f037c84885887Ec3018bEbdd562864bF5C1b06dB2389C39E849F5

,! 0x062487461C72ca2C2F0043cbe004870374DCba4E031FD8a50849e315B11ef7ac

,! 0x0692661C670B9bBbc000695b1f69B70081338b7B2ef70b6AD359b30e8f9495cD

,! 0x02080CE144530E13a0a9a53523b6D221Eb0E304aA4bfC5F7B9f36C00c1344b2D

,! 0x02CC2a19c9A8226bCCFfC060546BDDB66c9cFfED913B72C12bAe4110e70bb008

,! 0x05FE61f07c6E3C9fB420728dB9c4B07D4409600c1CfBe8B3618E01a6f151Dcfb

,! 0x05404992CC635901432CAc5186ca847a5ae978ff41420dCCdB51DA1F15FBBfdf

,! 0x0252fA9FB1e126e952D493796d2dfB11CE602b76A6F139B783aea2254b21aDA3

,! 0x061860b82b5a23481159e93Dd7150Fe1F95279EfF33F0648e6FDfC52007efC95

,! 0x067e146BdE57f2E4bcA5C55c7528797A02c83F8146C7B50F550448F2fc080C3d

,! 0x076BD390E0B39096AacB185fD72ff6347A50E0Bd5cafc44f1e91244C3B625217

,! 0x03d9dC98866684376eec1595114FC07A40cF6D0936e772a6F45374238cdc7Dab

,! 0x03B427996Cc15bbc87dBdd9c9Ac1640A5E9d702Cb82FBc4d642992e1f15711A1

,! 0x05B23F03d8846fEcd154eFe98fe8D5C96740d45E07D35E52373Bea5e1fa099b5

,! 0x059E0778B7829608E09222ed55C9964f7fD69018E00b0b6986dCe7A20c32fD9B

,! 0x07C2ce6EAC8F862C207B1AbD9bC63a15F4451eb97d81B47f5bd4d570b5458768,! 0x064ca69D5B0F9203042f7a64c5743778839EA5E3d6d8519d4836dd775e1CcDB2

,! 0x039Dc19c33D5900166C22A475E1e5edE6e97d0Caf0080aD4A01292e6D9d9BEfC

,! 0x07c484C53Cc4316E06F4217838a67c3c3D90786802dfF71B398E9561C3a8d738

,! 0x05F91c160A52868593108b4a0174430C8E389Eb724FE3BECE6D2f24Bd163718f

,! 0x07c0c94B51f89f45539dAb08D49B2573d265e73765056648bB853Dc5c089b624

,! 0x02F7730fDe392ae7bB1EE7c77DB6FEc33E0942493C6B292d1B14345d8EBc2D7b

,! 0x011b94A26912A630df3888f0A268C1570a09Ff79EB11d5e69d66335Dd4Dc83f1

,! 0x016b8F73df2887aA87a82a65533cf03ba60c8591905663f9F34B2b50Dcf03144

,! 0x0355ad812751D637E3d496eE6A40945DfDA3A56C82EAcBBd1253fF5C44307402

,! 0x05EF007BC44E6bDFb2d693560d4D8eAA2021BBd2cB1a9Db096eabE9c40d15662

,! 0x01E32a6e9C79F11F837d978F92447889A9185Db1114d11758e573650C0B5E53a

,! 0x052D0c79494DC98848Ffe30724ad1997193f43e1E4852A5Fc75E293281c0584f

,! 0x05cc25590A0c7e48bFE866A4EaaabE06024837d7b24fb3E05cF78e7359Bb26A5

,! 0x076B759080C8B62C7293838b9242A0483B03A8973E9d48cB3d5c50335F2030d6

,! 0x044846848e6b2513403d2599C992564F7be089027E0f87d6A99dc5886f7EF9fd

,! 0x059e2E331B5EC81131EAB473b277AfdB0BA7C3886bFc4936A15DcDd722c09004

,! 0x078020caf5B1D5b9bD9710860a94956e09d24A22798440C4C9C2a6d2f3007a0d

,! 0x007f7aa2682BA0dC462C1244Cdcbf5fF0670aaC5cceD6d8EddA4b1649279E7d5

,! 0x02F2E6B09A83A851351f03dc6b3e4996Db873C821aC75E505CB83c3ab4592f2e

,! 0x03eEeE8d2c8Ac996fEa5C39Ea4BD72654091Ab551F0C80ca29900bC2F692A439

,! 0x050aE203bb98b879f901d92c44249D8Cbf96202F07C2c8058342e55D856AB60F,! 0x0313B60539eBEF857C6783198fF319301515aD6Eeb3705860fAee770f2f47062

,! 0x06d60ad211Dab5C2D2D28D7cdF89C3Bb6a3B86A8Ef87813B271b8E6Ae1dB9094

,! 0x05e5703207B1Ba9Ac9c1Ed07d71A8F32f923797FCA7326b59270c15775aB96dA

,! 0x04185743266556319956300Bec4EA52959a28fe91A760AFcF990837eCA29c3e6

,! 0x03A5897cDF72B4B1368Bdfc253EF18A12EB16aec876aB40e98f1FA20b8bfcf32

,! 0x06F8b3CefDD1218EE5534372Ce03452F22eEf08e8B18271f20DE2996461369Ec

,! 0x043D6685A412e29b408Fe50EBb7F3b3B541d50F9aEF827382A03eAb97c43A70a

,! 0x00bE9B6D4346BcA89b59Ca08404fe05f3533270AA305f4f99d4e0551C0Da29C3

,! 0x0571a5073eE729b7C829620917545b2f17799491381d83637016D3a111ee0B7A

,! 0x002BF38f9fa1b3C2c79fdC86f2301218CF75052e62e152254b9e08de66B8DB62

,! 0x074eCaDe35f6C73620BDC1813Ac4eC3f38Ccb503149e6fc6f367783bC8cEA992

,! 0x072932F415586e1B52E5054a80F1f714d799E7d9B621a0F562eb6b0bfA4Ca532

,! 0x060f73A3D4F3452c48B94EEEe360465d315E2f6535D5BdcF4c44ACb231E3222c

,! 0x01791d8C14E233175C6d0F384Da9A0DB11955050e61154FCf0e04A2e9E951784

,! 0x0776122BA97a9fBf50599166AEe2245eb8c0D7FECab143A83c4F05804Ca82141,! 0x06601bd7E9de9E06B495Ff93d163F9590BdbB8d1375D71C0A1D139985881964A

,! 0x039ac9B6e60E2Bf0Bd2FC47CbaE13EFb1B68f12503099827252Cee4713C2A7D7

,! 0x030e514748688a94fdfc258b8d9D4906C62d088349Ff325bF52b4150A214058c

,! 0x04Bf35910d5156d5df68313BfE5cDaE98bd408dB12D72d219dE074Bbac4976bB

,! 0x07Ed23e5A895eA33FBBE10761CA5DEC5e8750066e850ed15868a421Bcad82873

,! 0x00596Eb067b2CfBb55c2A8427e16d4a2e1c635A75572FceD51bA933AB9C501de

,! 0x00287962B33b6808ee82B826306DC88F3aaDdE4670F17F548d47a9499D03f717

,! 0x06607dA768Fe9a836519053f953EfC9ef31B96AF63da84ED6c6E131eEd9dB916

,! 0x06AF9D5b72D1cd6a9a4fa13b47C47020681071FEac7455af5D12531031f15F3D

,! 0x03502EB5619E7AbF2F6a53fb3b83EA93Bd29C624899DFa3F1d686ba469201Caf

,! 0x05473AE909491C26AF23D710b536Ab9fA75A0BA57B59f3432b4D72aeaC133CfE

,! 0x04FFaD77B2DfaC2A4d13000fAA2835dc9d7CE3D2f13C9016832407Ad6EF3c965

,! 0x01dA2a1390e5666cFF626488016Da88fB7B0e5721025c6252f786b3dAECeE9cA

,! 0x052F04983c00c237D551b483498023c355200402FBF223a6303452C18E05ad45

,! 0x0598564BF91562C15C1F34d57352214e93315d9Ca17674DA8de1Af366E067448

,! 0x037Fc5EA6d0d57b1348227d28FD3B858B4242691f808ED7D43Cb2441e5888D82

,! 0x046112f765eb3A7a64EAF8DdD23863C82a6250b0611312F4d50d2632c039C707

,! 0x0608000cFDC983DE004DA757EC340b5CfA50a6f0E906E931a7bD42d4316E5691

,! 0x06FEe46de075b7dA284DE04F3A45C650858B493d56Dc82fc043fD45090f95b1B

,! 0x065579794e539778A3D38F0Ce7f214849aEe48189e66e063Fa391A1eAec0A025

,! 0x045D404bc2Af461597Cb46B2845afe45db78889F94cAD33adf2F85834DBb481E,! 0x07177134Ea02C689fEFC53c4EBA27E76299CBb19f6C3b71B82A7d3E5dC812136

,! 0x034cc5EA92a83603C032Fa98b1EEDf38CC850c922728fd3D4301621ae441Abfb

,! 0x041E5aB2357d1189cBd03bdb241a9F06B8BAad681B8c9AAA96f0150c66bd5530

,! 0x055F40d35E51517e376c9F1Cd420CA8Bf0bdaD26d5e7ba0C66Ef0f9090c31E19

,! 0x076416614B3104bc588335365e46b64a5A43CCe0A2Fc446F8725A0AdeC6f5ca0

,! 0x00fD38f08885928991B34F1FBfC6005986DbD8c18FD17bd5F4DD23393AFed2bb

,! 0x02FD952503826a3FDE738e3F5E6BB9B9e46346cD24ACc83CAF821B9b65640d1f

,! 0x0189060273e016C07783537B910770ab8849bA34D696A69C9Ec224776Bd7FC6B

,! 0x072f98BCbA03A1f1Aaadf40B75F75De93D819eb5031B9F148c25DB15f466959a

7.6 Ape Cairo (periphery core)

,! /home/runner/.cache/pypoetry/virtualenvs/sithswap-C2YYCxzA-py3.9/bin/python

,! 0x0480D0b2fe1F318C354B4D7907D71b6f0C1A05c729E42b9661EFbc541e662C5b

,! 0x040B5d70864E3c3800E2fed5cc88f305675c68fFFf66196D5415B567BbEbcd4b

,! 0x03b778758637f879E902EBa0C0A470D227235187e029d5a10519B17F68b0A0f2

,! 0x05D7bC6C5Ac9B9aCc4f98D26964F0eBd6BB2f328b05CF45D7bf417F6dc4fB023,! 0x003abbb887cfA0692AB9FF5c241b51FFC3c7bcA183D38Bcf0326bff861c3E960

,! 0x040A6562F7bC1e310Adc90C30ab8217253540012EC825Ad82db1E121D58d2353

,! token1=1827619609526171896807720267576228522627530347755387783085002458525095240531 stable=0 fee=307,! fees=704417927313477692167275294286797773907357016484220550527059860907331823628,! pair=1452721059341890234056015374264718567860172073935705366591480868090735968981)

,! 0x05A29D7b270c796b39efe7638c5665b7940182C4e851740A0b18de06064dC532

,! 0x041d935b1bb342a08b4B3c99EC4C42FA33694680B9d183A8eba3C502013e4f0d

,! token1=2548880361772627382621986078590019573777897038655667308693437638383307179314 stable=1 fee=975,! fees=3351590816159585251467376351451924237285535798445802325569780034860018763927,! pair=2852262024936104494548898000372543957128969741446679310580008785883225541411)

,! token1=2548880361772627382621986078590019573777897038655667308693437638383307179314 stable=0 fee=975,! fees=1290178015301256008224782134955882440435842123274539522953532840783898086058,! pair=19628643361458490857629267196559036698909044051543264760749495452517709718)

,! 0x010C9a39Bc6CB476A751094D5dde3E7Fd0070aC7035373d0664F018311FAe528

,! 0x037026A6349Db409220Ffe87f11862c02c3c729AdEFD679f64CB37B90fE36916

,! token1=1555092164258417525280353038439286423924280183916600092826700122205492308246 stable=0 fee=307,! fees=9929406112196242051678762425247715910267633561144329171207686925673324286,! pair=3052050796144547367228415020133811889562257730258907951324225244006066072967)

,! 0x0019A16B568D7053996505C977bf37f38Ca9cAD1e2d0CdCCfe750c0067F4eBd6

,! 0x04F8a26233Fb9335B34Fad1C0aa831282dBCA978CF64bd551D8Bd63c3ad07223

,! 0x05d93e0aCeAF2248B78Bfe19b582720ff4bDa7062C5867ff49bFa687042ce66d

,! token1=2248550196855477162370137670306120325922607046919973619851693737781599695395 stable=0 fee=1000,! fees=1270853212766330537441831525812943147611671633331125125881130855613454839532,! pair=3547811482821691619964861065208182684301707698861932139259189416092940576465)

,! token1=2645398255612587028298383806694376178688299800411602302422813640431569266285 stable=1 fee=1000,! fees=2537468903414596048406903645256779415504210098472116878910087251540439915806,! pair=2587322476177420871642234588404282538376390212525757445933340165469188040792)

,! token1=2645398255612587028298383806694376178688299800411602302422813640431569266285 stable=1 fee=2999,! fees=1069060278726375490327944116422278114097257500226128171122099484335054981508,! pair=2374432859393776058673715556963374785462928754553335334764857836242757448031)

,! 0x017aef9202B6bF0e6d7679d704a897Fb9937d101e3ccEf4B5CeEB104A3B862c4

,! 0x029b15eD9977f5D79df793fC435B95A43ec2b686F97F6955D33255A18b39F85E

,! token1=1178638334549954503513840970720454065885736409698893872046686534578160138334 stable=0 fee=307,! fees=2126718480331861674215242549837560200703439339432891479869681684714284815293,! pair=1164006241074636013245618806383229209496200965012441003737833928107246660678),! 0x00c7ddCDB663a96Fe3Fac507F102C52018482CE110b53c3b0B54d533e89A8056

,! 0x040e1cC2f58BAD95f1F78B7B9B47648513817Bc2ee868BeFf21819273d6245E3

,! token1=1834185758226298180783882065440559041047730372165454818012053749024552011235 stable=0 fee=307,! fees=691127210536079142372512602237058052452094588841611153736669836355046200683,! pair=1677428026556174737366269813809991761899043208657585646368305744815511250682)

,! 0x03cF83024A59bcC67936A3A74Da189CB87D80815ED4Ad758d83bC7f84562c461

,! 0x05c426e5d05d5bC37Cd023B2E4ae15E2bCAAaAc8Da57723F51aF8A35d5b762F9

,! token1=2608134729745222195860268404347319353908698336834816749957188932225755210489 stable=0 fee=307,! fees=1271594305999332514590030948438332248357053647242030466638557313337075205377,! pair=3566240707497805914671731883695439184891625253064016741476151012451108915271)

7.7 Ape Cairo (periphery 01)

,! /home/runner/.cache/pypoetry/virtualenvs/sithswap-C2YYCxzA-py3.9/bin/python

,! 0x065959874A73bFC544D11e2106296C977f5ea45c9FC52629eCE0d29DaD8ED919

,! 0x073fFF629f267D5C72f27694D89C3b6fcaB315bE09925C184bc41b207247a78a

,! 0x031407de5Ca2f61D22dE08188a76B5e6e1392303b5C963D2F323204bf63b24F6

,! 0x000eD89B927FDE96f14f71579911CDf133e9383505c17Bc4899B7349e327154D

,! token1=1392329794133723750828736927573503677394792528012191097572708227937742824694 stable=0 fee=307,! fees=2403159034537383311435650704978279444348429211745825755769555831981633960139,! pair=1692452280336398259235403779220226771289316494448986951822118082178065583672)

,! A amount]

,! 0x0268642AB8A72e0b046Cc64335662ae49B12f3D529616df37a5907Fd5a475Ae9

,! 0x01385Ae3415Ee5B1673DaaF3C3790b88d3606502E78dA55591D65830f292fD32

,! token1=1089069118302159294318262057878268842813421399804182984971433204750507006697 stable=0 fee=307,! fees=271045040282417321347521554540966956427041204649244836427703738377807594811,! pair=3198141792750599272855284613142870331208800128073986406516954241315832869029),! 0x017B02dFf8489827D063949cDcAA7E2F96AA7b361db88069c519Aeb73D7A927f

,! 0x0401c8864b11Cf57F8EBDf1Fd3484a1df31aB262907C0769F0d5fA88bEe8dED5

,! token1=1812402211205803906663050407595789478827574144942854980113883188276343922389 stable=0 fee=307,! fees=3291126793320544296921523612230542031741017088690331865308301164891391169336,! pair=3217142039555524703225954985162422161253990595406899163521391614431853345411)

,! 0x0069BB3529f6CdbA1A342Dfce242e74C2A3629fABaFBb509ec96c39E75550617

,! 0x00AbeF7b23301F56165726cCc4B569c7A27603cE777F47AA34006123aC9fe31f

,! token1=303783685233153343177898693852578028547928137597394504077106652614850765599 stable=0 fee=307,! fees=999435209929867370114498254000669157874306992719454227685284592073115757120,! pair=2194840862107418550687235033611041844912736845999992319997997769001744137216)

,! 0x01f3F887962Ad40D85F267eE9EC855d11f8aC02ADbEeD6de4301293165fF9110

,! 0x06969FeeE57550b21EB2CA0dCF1Bd1Cc089889EB3a0F21Ea1c40314e50Bf2064

,! token1=2980007969517577934693525961654065975384784847196511654858088674035719151716 stable=0 fee=307,! fees=2839476867647265908209912461915303338765411379938615514503543210898150128505,! pair=2388219848638430009906308222437529948160719381588091265467332092285269294743)

,! 0x073768EC3149e4a4B1B1d3123382994DBa82225553d0FAa7Db4770393550D5A6

,! 0x004daA48461bB15e68dac10eCA11cfe7De50C12F5dcbf3E7937EA7A4749A489A

,! token1=3264090678003855688531484626289756887713235596628849172834148658272361567654 stable=0 fee=307,! fees=1929229217073338726917345216189487918748412540708885260903436017289156334754,! pair=962353840184017316411308035284820083983587868969483347966545216851295998386)

,! 0x051cAFc0e878d3B42a1BE58b9E3eFA2eE6114E626f8226D4b3EfbB99dA5a7284

,! 0x04f4d4c53e68261d37c8730F2E8081960d73605a56422D4604a726FeA1DeBc89

,! token1=2312248967132732143343658273858068906593689171114936516291606037783151014532 stable=0 fee=307,! fees=2739905963042350901991337635489499965593316189628346723905943189611129693316,! pair=867696202419169232983170291777636674014380139316135625542125966358100090039)

,! 0x003A8Fd9BC419E820f35b20B1148932590387288F19673e433a1D0B9c333234B

,! 0x04f6d9987A45322b298C407119D10799F773f8bD6bD1f79982851302DBdcB945

,! token1=2245397562014260212824015631196633349152784943898138338021355651079866202437 stable=0 fee=307,! fees=3124778401223670410057229341984995073190617747926316292254141644634893150324,! pair=3365045638909929280028299276593462360032368515124216985908976600024684829717),! 0x055639b214c2959C5Bbb68ff12E7aA10238812bEECC67FA32b8438F81984284D

,! 0x02827aD954d0044335413E45873C882429840c54a02A2bdB48291AeDdB45084A

,! token1=2413911291085840028807502987648835634065141940297877379789386473827018745933 stable=0 fee=307,! fees=160353205028918756087329320143135390992002001471263205913148050791394317095,! pair=2573643575176110380768453453773077869521501889848078686606389971322854537654)

,! 0x07595801178fB558A0c81E55eaAaCF4965149D054c5cf8529aEAEA2Aa875D462

,! 0x0127b196e49a86d0044C50a33eb22bd8317CD324F914aA5626D8E022e016E99F

,! token1=3324046711967906069124484782184686278082667749273761694415770840812485989474 stable=0 fee=307,! fees=2053813187816970834155576243284601610733255343486623729217023985386522261942,! pair=1253480110511062180723107977973410458105575226336896665417019758876127166125)

,! 0x01148FfB950ce4Ad6DCAA445aC98cb8A20Ce0F7D2884C4780D7A2Ee50Be12fef

,! 0x02323B0386cc6e5e7c10F99a7A5cf60638c8DbC266D9a5b1379ddFBeed3E6A20

,! token1=993375348515697810225764407312641893986531268441906939887593944627508308512 stable=1 fee=975,! fees=3267886983997371700947113308395846098779906659008666964758188026027889939631,! pair=1970996578611820395837661227946623046228341861752988917980132289919426445852)

,! 0x024c83361d7916C2F4434ce8f2Fd21E2940A76463604A241D6873aD12F1F4870

,! 0x002b56eC75Cc8A7dA798e38266E5Eb42B078FD9B571D77d43d4889E084381f37

,! 0x0695321f53227dB99D38c2b61A5610de83cad5CEf823e94b5A00a37C36B51687

,! token1=1039811661802109123416825747339812394931514117221465048107952839076607903856 stable=0 fee=1000,! fees=347272521093952467363577072106235044737545452175758563341224231216259560256,! pair=597821399536149121969373424886767853458232567377815585686991938594880611193)

,! token1=2977483235982372834808957212037407751759671706407336131432316899240608863879 stable=1 fee=1000,! fees=1276195985203000657380325727926099266695470972975701746803840225767715687444,! pair=228282011126323288242085187950014415850297921316827274796429119180639093532)

,! token1=2977483235982372834808957212037407751759671706407336131432316899240608863879 stable=1 fee=2999,! fees=3048441548847729364721982460955741393612865657615085521436681072165876932363,! pair=2185334711721194586722841990328935438068602977438134043829512452697287047652),! 0x07cA348183DE352b8af26c51328b40B92A81E72bE2d5C7A7d0087c2B03236d1B

,! 0x03366b7DbECf98dAF15E63a770FeA0Dc3ca6C9e14aDf69579cA0dD1bbF2FBaCB

,! token1=3523455429698572677489583752264838833702232534976894701872685672252932582683 stable=0 fee=307,! fees=1734605426014087419415650938656495137815919855751088054431494206744413426682,! pair=725409669255976099621107001987994662777891467175603220850234314658684567524)

,! to=1453090164195007809849187465863872200780467406301926549038009689385338911435 value=(100000000000000000, 0)),,! Arguments(from_=2957188269200184411255999937111091253445605066208535325081986593780030033891,! to=725409669255976099621107001987994662777891467175603220850234314658684567524 value=(900000000000000000, 0)),,! Arguments(from_=725409669255976099621107001987994662777891467175603220850234314658684567524,! to=3523455429698572677489583752264838833702232534976894701872685672252932582683 value=(163179541926701361, 0)),,! Arguments(from_=725409669255976099621107001987994662777891467175603220850234314658684567524,! to=2957188269200184411255999937111091253445605066208535325081986593780030033891 value=(1468615877340312250, 0)),,! Arguments(from_=725409669255976099621107001987994662777891467175603220850234314658684567524,! to=1453090164195007809849187465863872200780467406301926549038009689385338911435 value=(276300000000000, 0)),,! Arguments(from_=725409669255976099621107001987994662777891467175603220850234314658684567524,! to=1734605426014087419415650938656495137815919855751088054431494206744413426682 value=(2486700000000000, 0))]

7.8 Ape Cairo (Prostar Cairo)

Test suite
10Tests passed0Failed

The complete test output is in the full report.

As auditors, we recommend that any changes or updates made to the audited codebase undergo a re-audit or security review to address potential vulnerabilities or risks introduced by the modifications. By conducting a re-audit or security review of the modified codebase, you can significantly enhance the overall security of your system and reduce the likelihood of exploitation. However, we do not possess the authority or right to impose obligations or restrictions on our clients regarding codebase updates, modifications, or subsequent audits. Accordingly, the decision to seek a re-audit or security review lies solely with you.

This report is based on the scope of materials and documentation provided by you to Nethermind in order that Nethermind could conduct the security review outlined in 1. Executive Summary and 2. Audited Files. The results set out in this report may not be complete nor inclusive of all vulnerabilities. Nethermind has provided the review and this report on an as-is, where-is, and as-available basis. You agree that your access and/or use, including but not limited to any associated services, products, protocols, platforms, content, and materials, will be at your sole risk. Blockchain technology remains under development and is subject to unknown risks and flaws. The review does not extend to the compiler layer, or any other areas beyond the programming language, or other programming aspects that could present security risks. This report does not indicate the endorsement of any particular project or team, nor guarantee its security. No third party should rely on this report in any way, including for the purpose of making any decisions to buy or sell a product, service or any other asset. To the fullest extent permitted by law, Nethermind disclaims any liability in connection with this report, its content, and any related services and products and your use thereof, including, without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. Nethermind does not warrant, endorse, guarantee, or assume responsibility for any product or service advertised or offered by a third party through the product, any open source or third-party software, code, libraries, materials, or information linked to, called by, referenced by or accessible through the report, its content, and the related services and products, any hyperlinked websites, any websites or mobile applications appearing on any advertising, and Nethermind will not be a party to or in any way be responsible for monitoring any transaction between you and any third-party providers of products or services. As with the purchase or use of a product or service through any medium or in any environment, you should use your best judgment and exercise caution where appropriate. FOR AVOIDANCE OF DOUBT, THE REPORT, ITS CONTENT, ACCESS, AND/OR USAGE THEREOF, INCLUDING ANY ASSOCIATED SERVICES OR MATERIALS, SHALL NOT BE CONSIDERED OR RELIED UPON AS ANY FORM OF FINANCIAL, INVESTMENT, TAX, LEGAL, REGULATORY, OR OTHER ADVICE.