Affyn security record

Polygon (POS)affyn.com

As of 3 Nov 2026, Affyn has 1 audit report on Trustblock, by CertiK, dated 7 Oct 2022. That report lists no open critical findings.

Critical findings
No open critical findings
In 1 report.
Open the latest report
Your label, live
Get the label for your site

Record last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits1

Newest first

AuditSecurity firmDateScopeCritical findingsReport
Affyn LandSecurity firm: CertiKDate: Scope: Files named in the reportNo open critical findingsOpen · skynet.certik.com

Findings17

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

SeverityOpenAcknowledgedFixed
Critical000
High010
Medium000
Low5011
Low`soldLands` mapping not updatedAffyn Land · CertiK · 7 Oct 2022Fixed

In `PrivateLandSale()`, after a private land is minted to `target` address the value stored in `soldLands[]` is not updated to `true` allowing the same `hexID` to be reused.

Open the report
LowComparison to Boolean ConstantAffyn Land · CertiK · 7 Oct 2022Fixed

Boolean constants can be used directly and do not need to be compared to true or false. ```solidity=2861 require(soldLands[hexID] == false, "Selected HexID is already sold"); ``` --- ```solidity=2877 require(soldLands[hexID] == false, "Selected HexID is already sold"); ``` --- ```solidity=2898 require(soldLands[hexIDs[i]] == false, "One of selected HexIDs is already sold"); ```

Open the report
LowEmit Events issuesAffyn Land · CertiK · 7 Oct 2022Fixed

There should always be events emitted in the sensitive functions that are controlled by centralization roles. The functions in which it is necessary to emit events are given in the finding locations. --- Also, in the `ModifyReleaseTime()` function, the name of the emitted event `DepositedRevoked` is not relevant to the purpose of the function. It is intended to change the timelock release time value and not to revoke the user's deposits.

Open the report
LowFunction Name TypoAffyn Land · CertiK · 7 Oct 2022Fixed

The function named `setWhitelistMerkleRoots()` is used to change the value of `whitelistedMerkleRoot` and only a single root is passed as input.

Open the report
LowFunction Should Be Declared ExternalAffyn Land · CertiK · 7 Oct 2022Fixed

The functions which are never called internally within the contract should have external visibility.

Open the report
LowMissing Error MessagesAffyn Land · CertiK · 7 Oct 2022Fixed

**require** can be used to check for conditions and throw an exception if the condition is not met. It is better to provide a string message containing details about the error that will be passed back to the caller.

Open the report
LowMissing License IdentifiersAffyn Land · CertiK · 7 Oct 2022Fixed

The contracts `AccessPassContract.sol` and `LandAndFlagContract.sol` are missing a SPDX license identifier.

Open the report
LowMissing Zero Address ValidationAffyn Land · CertiK · 7 Oct 2022Fixed

Addresses should be checked before assignment or external call to make sure they are not zero addresses. ```solidity=728 _beneficiary = beneficiary_; ``` - `beneficiary_` is not zero-checked before being used. --- ```solidity=730 _admin = admin; ``` - `admin` is not zero-checked before being used. --- ```solidity=2650 teamAddr = payable(_teamAddr); ``` - `_teamAddr` is not zero-checked before being used.

Open the report
LowMultiple meanings and goals associated with the sAffyn Land · CertiK · 7 Oct 2022Fixed

Within the codebase the word `category` is used as input to different functions in order to access mappings or emit events. The same word is used to indicate both the different categories of lands and flags. In particular, the possible flag categories are 0,1,2 or 3; therefore LAND_FLAG_COST[category] has values only for category values in the range [0;3]. Assume, however, the following scenario: - The `CreateNewCitySale()` function is called for the first time, passing as input appropriate arrays with length = 5. Therefore merkleRoots.length = overallLandQuota.length = presaleLandQuotas.length = 5. - The 3 require statements placed at lines 2944, 2945, 2946 succeed and the value of `currentCitySaleIndex` is incremented to 1 - In the 5 iterations of each for loop, calls to the functions `SetHexRarityMerkleRoot()`, `SetCitySaleQuota()`, `SetCityPreSaleQuota()` occur by passing as the second parameter destined for `category` the value of loop index i. Specifically in the last iteration of the loops the index i is equal to 4. - This means making the following assignments: ```solidity PRESALE_LAND_SALE_LIMITS[1][4] = share; // line 2932 LAND_SALE_LIMITS[1][4] = dimension; // line 2938 saleHexRarity[1][4] = merkleRoot; // line 2973 ``` - Calling the `GetFlagBalanceAndLimits()` function with category = 4 as parameter will result in accessing LAND_FLAG_COST in a position that can never be set. On the other hand, accessing with a category value in the range [0;3] in order to have a valid LAND_FLAG_COST value will result in never accessing all LAND_SALE_LIMITS positions greater than index 3.

Open the report
LowState Variable Should Be Declared ConstantAffyn Land · CertiK · 7 Oct 2022Fixed

State variables that never change should be declared as `constant` to save gas. In `AccessPassContract.sol`: - `LOCKUP_DURATION` - `AAP_PRICE` - `EAP_PRICE` In `LandAndFlagContract.sol`: - `membershipContract` - `COLLECTION_NAME` - `TICKER`

Open the report
Show 1 more
LowUnused State VariableAffyn Land · CertiK · 7 Oct 2022Fixed

The variable `spentFlags` in `LandSale` is never used in `LandSale`.

Open the report

Contracts

No deployed address is recorded for these audits.

The reports name a repository or files. Open a report to see its scope.

The repositories and files the reports name

Show this on your site

Is this your project? Show this record on your own website. The label states what the record holds, links to this page and updates by itself. It is free and needs no sign-in.

Content

Facts

Automatic: the three strongest facts of this project’s own record (its last audit and two more), highlighted. They update with the record. Picking a fact turns Automatic off.

Fixed as
Language

Style

Layout
Theme
Accent
Corners

Format

Size
Date
Embed as
HTML
<head>
<script src="https://widget.trustblock.run/project-widget.min.js" defer></script>
</head>
<body>
<div
data-tb-project-widget
data-tb-project-slug="affyn"
></div>
</body>

Paste the code where the label should appear. It uses no API credit and updates by itself.

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us