Phiat audit reports

Ethereumphiat.ioX

Phiat has 1 public audit report from CertiK; dated 13 Apr 2023; no critical findings reported.

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

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

Open findings across every firm6

Statuses are the security firms’ own

6 findings are still open or acknowledged in the firms’ reports: 2 high, 1 medium, 3 low (all open).

High
2
Medium
1
Low
3
  • High Open

    Centralization Related Risks

    Phiat · CertiK · 13 Apr 2023 · Report ↗

  • High Open

    Unimplemented Functions

    Phiat · CertiK · 13 Apr 2023 · Report ↗

  • Medium Open

    Usage Of `Multisig` Contract

    Phiat · CertiK · 13 Apr 2023 · Report ↗

  • Low Open

    Incompatibility with Deflationary Tokens

    Phiat · CertiK · 13 Apr 2023 · Report ↗

  • Low Open

    Missing Zero Address Validation

    Phiat · CertiK · 13 Apr 2023 · Report ↗

  • Low Open

    Unused Return Value

    Phiat · CertiK · 13 Apr 2023 · Report ↗

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
PhiatSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 2 high · 2 medium · 12 low
10 fixed · 6 open
skynet.certik.com ↗

Findings16

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

SeverityOpenAcknowledgedFixed
Critical000
High200
Medium101
Low309
HighCentralization Related RisksPhiat · CertiK · 13 Apr 2023Open

In the contract `MultiOwnable` the role `_owners` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_MultiOwnable-MultiOwnable-_owners.svg) In the contract `TreasuryOwnable`, the role `_treasury` has authority over the following functions: - function transferTreasury(): transfer the ownership of the role `_treasury` to another address. In the contract `ATokensAndRatesHelper` the role `_owner` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_ATokensAndRatesHelper-ATokensAndRatesHelper-_owner.svg) In the contract `StableAndVariableTokensHelper` the role `_owner` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_StableAndVariableTokensHelper-StableAndVariableTokensHelper-_owner.svg) In the contract `WETHGateway` the role `_owner` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_WETHGateway-WETHGateway-_owner.svg) In the contract `AaveOracle` the role `_owner` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_AaveOracle-AaveOracle-_owner.svg) In the contract `LendingRateOracle` the role `_owner` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_LendingRateOracle-LendingRateOracle-_owner.svg) In the contract `PhiatBackupPriceOracle` the role `_owners` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_PhiatBackupPriceOracle-PhiatBackupPriceOracle-_owners.svg) In the contract `PlsUsdPriceOracle` the role `_owners` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_PlsUsdPriceOracle-PlsUsdPriceOracle-_owners.svg) In the contract `LendingPoolAddressesProvider` the role `_owner` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_LendingPoolAddressesProvider-LendingPoolAddressesProvider-_owner.svg) In the contract `LendingPoolAddressesProviderRegistry` the role `_owner` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_LendingPoolAddressesProviderRegistry-LendingPoolAddressesProviderRegistry-_owner.svg) In the contract `PhiatMultisigGov`, the role `owners` has authority over the following functions: - function updateReserveLimits(): update the reserve limits. - function updateReservesLimits(): update the reserve limits. In the contract `PhiatTimelockController` the role `admin` has authority over the functions shown in the diagram below. ![](https://accelerator-tasks-prod.acc.corp.certik.com/96ab72a078f5441898ff3a62976103b0/diagrams/centralization_PhiatTimelockController-PhiatTimelockController-admin.svg) In the contract `LendingPool`, the role `LENDING_POOL_CONFIGURATOR` has authority over the following functions: - function initReserve(): initializes a reserve. - function setReserveInterestRateStrategyAddress(): update the address of the interest rate strategy contract. - function setConfiguration(): update the reserve configuration data. - function setLimits(): update the limits of the reserve. - function setPause(): update the `_pause` state of a reserve. In the contract `LendingPoolConfigurator`, the role `POOL_ADMIN` has authority over the following functions: - function batchInitReserve(): initializes a reserve in batch. - function updateAToken(): update the aToken implementation for the reserve. - function updateStableDebtToken(): update the stable debt token implementation for the reserve. - function updateVariableDebtToken(): update the variable debt token implementation for the asset. - function enableBorrowingOnReserve()/disableBorrowingOnReserve(): enables/disables borrowing on a reserve. - function configureReserveAsCollateral(): update the reserve configurations. - function enableReserveStableRate()/disableReserveStableRate(): enables/disables stable rate borrowing on a reserve. - function activateReserve()/deactivateReserve(): activates/deactivates a reserve. - function freezeReserve()/unfreezeReserve(): freezes/unfreezes a reserve. - function setReserveFactor(): update the rese

Open the report
HighUnimplemented FunctionsPhiat · CertiK · 13 Apr 2023Open

The contract `PlsUsdPriceOracle` is not marked as `abstract`. It also implements the interface `IChainlinkAggregator` but does not implement any functions in it. Thus, the compilation of this contract will fail. Also, the `latestAnswer` is updated by the contract owner instead of directly from chainlink sources like the contract `AaveOracle`(`IChainlinkAggregator(source).latestAnswer()`). Thus, the price source is unknown and can have centralization issues.

Open the report
MediumUsage Of `Multisig` ContractPhiat · CertiK · 13 Apr 2023Open

Usually, to use the multi-signature wallet, the owner role of the applied contracts will be transferred to the multi-signature wallet. In the current protocol, some contracts followed the normal multi-signature usage. However, the linked contracts inherited the contract `Multisig` and used the function modifier `ownerExists`. This is not a proper multi-signature usage and allows a hacker to cause damage when the private key of an owner account has been lost. Also, the different inherited contracts will create multi-signature wallets in the protocol. The wallets may have different signer addresses and cause confusing role management. In addition, the contract `MultiOwnable` behave similarly to the function modifier `ownerExists` and does not mitigate the centralization issue.

Open the report
LowIncompatibility with Deflationary TokensPhiat · CertiK · 13 Apr 2023Open

When transferring standard ERC20 deflationary tokens, the input amount may not be equal to the received amount due to the charged transaction fee. As a result, an inconsistency in the amount will occur and the transaction may fail due to the validation checks.

Open the report
LowMissing Zero Address ValidationPhiat · CertiK · 13 Apr 2023Open

Addresses should be checked before assignment or external call to make sure they are not zero addresses. --- ```solidity=38 pool = _pool; ``` - `_pool` is not zero-checked before being used. --- ```solidity=39 addressesProvider = _addressesProvider; ``` - `_addressesProvider` is not zero-checked before being used. --- ```solidity=40 poolConfigurator = _poolConfigurator; ``` - `_poolConfigurator` is not zero-checked before being used. --- ```solidity=16 pool = _pool; ``` - `_pool` is not zero-checked before being used. --- ```solidity=17 addressesProvider = _addressesProvider; ``` - `_addressesProvider` is not zero-checked before being used. --- ```solidity=27 wPLS = _wPLS; ``` - `_wPLS` is not zero-checked before being used. --- ```solidity=49 BASE_CURRENCY = baseCurrency; ``` - `baseCurrency` is not zero-checked before being used. --- ```solidity=546 (bool success, bytes memory result) = collateralManager.delegatecall( abi.encodeWithSignature( "liquidationCall(address,address,address,uint256,bool)", collateralAsset, debtAsset, user, debtToCover, receiveAToken ) ); ``` - `collateralAsset` is not zero-checked before being used. --- ```solidity=20 ADMIN = admin; ``` - `admin` is not zero-checked before being used. --- ```solidity=18 phiatFeeDistribution = _phiatFeeDistribution; ``` - `_phiatFeeDistribution` is not zero-checked before being used. --- ```solidity=47 phiatFeeDistribution = _phiatFeeDistribution; ``` - `_phiatFeeDistribution` is not zero-checked before being used. --- ```solidity=100 _treasury = treasury; ``` - `treasury` is not zero-checked before being used. --- ```solidity=101 _underlyingAsset = underlyingAsset; ``` - `underlyingAsset` is not zero-checked before being used. --- ```solidity=100 _treasury = treasury; ``` - `treasury` is not zero-checked before being used. --- ```solidity=101 _underlyingAsset = underlyingAsset; ``` - `underlyingAsset` is not zero-checked before being used. --- ```solidity=51 _underlyingAsset = underlyingAsset; ``` - `underlyingAsset` is not zero-checked before being used. --- ```solidity=45 _underlyingAsset = underlyingAsset; ``` - `underlyingAsset` is not zero-checked before being used.

Open the report
LowUnused Return ValuePhiat · CertiK · 13 Apr 2023Open

The return value of an external call is not stored in a local or state variable. ```solidity=31 WETH.approve(lendingPool, uint256(-1)); ``` --- ```solidity=79 ILendingPool(lendingPool).withdraw( address(WETH), amountToWithdraw, address(this) ); ``` --- ```solidity=120 ILendingPool(lendingPool).repay( address(WETH), msg.value, rateMode, onBehalfOf ); ``` --- ```solidity=95 _rewardToken.mintTo(user, rewards); ``` --- ```solidity=417 IVariableDebtToken(reserve.variableDebtTokenAddress).mint( msg.sender, msg.sender, stableDebt, reserve.variableBorrowIndex ); ``` --- ```solidity=429 IStableDebtToken(reserve.stableDebtTokenAddress).mint( msg.sender, msg.sender, variableDebt, reserve.currentStableBorrowRate ); ``` --- ```solidity=475 IStableDebtToken(address(stableDebtToken)).mint( user, user, stableDebt, reserve.currentStableBorrowRate ); ``` --- ```solidity=608 IAToken(aTokenAddresses[vars.i]).transferUnderlyingTo( receiverAddress, amounts[vars.i] ); ``` --- ```solidity=1076 IAToken(vars.aTokenAddress).transferUnderlyingTo( vars.user, vars.amount ); ``` --- ```solidity=25 phiat.claim(); ``` --- ```solidity=36 phiat.claimByTreasury(account); ```

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

Phiat: questions

Is Phiat audited?

Trustblock holds 1 public audit report for Phiat, dated 13 Apr 2023. The latest is by CertiK (“Phiat”).

Who audited Phiat?

CertiK wrote the report Trustblock holds for Phiat.

Are there open findings in Phiat’s audits?

6 findings are still open or acknowledged in the firms’ reports: 2 high, 1 medium, 3 low (all open). No critical finding is reported. Statuses are the security firms’ own.

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="phiatio"
></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