Wefi (Earlier Paxo)

Wefi (Earlier Paxo) Smart Contract Audit Report

Share
Share
PolygonPolygon
Price OracleLending and BorrowingReward Token+1
PolygonPolygon
Price OracleLending and Borrowing+2

QuillAudits audited the Wefi (Earlier Paxo) smart contracts on Polygon between Feb 22, 2022 and Mar 7, 2022. The audit found 3 issues: 2 medium, 1 informational, of which 3 resolved and 0 acknowledged.

Project Description

Wefi (Earlier PAXO) is a decentralized money market protocol which opens up investment loan options in the DeFi space that allows users to invest in digital assets through multi-pool borrowing.

Timeline

S1
Feb 22, 2022
S2
Mar 7, 2022

Scope of Audit

The scope of this audit was to analyze the Wefi (Paxo) Finance Smart Contract’s codebase for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
99.0%
AUDIT SCORE
icon

High

Medium

Low

Informational

open0000
acknowledged0000
partially resolved0000
resolved0201
Wefi (Earlier Paxo)

Wefi (Earlier Paxo)

Medium Severity Issues

• Incorrect estimation of the borrowed amount would lead to failure of borrow and buy functionality.

Resolved
arrow-right
Description

In PToken.sol[#L2742],Above if statement checks whether the position has the enough cash to cover the borrowAmount or not but this check happen after the partialAmount get transferred to the position that means it also considered that amount as borrowAmount while the contract needs partialAmount + borrowAmount balance of underlying token to successfully execute the swap. This would lead to failure of the swap transaction if the contract has not enough prior cash to fill the borrowAmount.

Contract

PToken.sol

Recommendation

It is recommended to move the if statement before transferring the partialAmount (i.e before [#L2736]) to get correct value of prior cash and fail with correct error code if available cash wouldn't be able to cover the borrowAmount.

• Re-entrancy is allowed in the borrowAndBuy function.

Resolved
arrow-right
Description

In PToken.sol [#L2719] borrowAndBuy() function allows the attacker to re-enter into the function again and that gives the attacker an opportunity to behave maliciously.

Contract

PToken.sol

Recommendation

It is always a best practice to use OZ’s re-entrancy guard in functions which lead the movement of any type of funds and has interaction with the third party contracts.

Informational Issues

Appendix

Disclaimer

Wefi (Earlier Paxo)

Wefi (Earlier Paxo)

Medium Severity Issues
Informational Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

Related audits

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC