fly.trade  V2

fly.trade V2 Smart Contract Audit Report

Share
Share
EthereumEthereumPolygonPolygonMetisMetis+11
DeFiDex AggregatorUniswap v3+2
EthereumEthereumPolygonPolygon+12
DeFiDex Aggregator+3

QuillAudits audited the fly.trade V2 smart contracts on Ethereum, Polygon, Metis, Taiko, Avalanche, BSC, Arbitrum, Optimism, Base, ZKsync, Blast, Scroll, Fantom and Manta between Sep 24, 2024 and Oct 18, 2024. The audit found 14 issues: 2 high, 6 medium, 3 low, 3 informational, of which 12 resolved and 2 acknowledged.

Project Description

The Intent-based protocol by Magpie transforms trade execution by allowing users to define desired outcomes through signed "Intents," which specify transaction details while maintaining asset control. Solvers in a competitive network fulfill these Intents by routing orders across diversified liquidity sources and covering gas fees, providing users with optimal trade prices, cross-chain support, and gas fee savings, all without manual swaps or bridge complexities.

Note : Starting May 2025 Magpie has been rebranded as fly.trade. Same platform, new name - reflecting a refreshed identity and direction.

Timeline

S1
Sep 24, 2024
S2
Oct 18, 2024

Scope of Audit

The Scope of the Audit is to Analyse the Security,code Quality and Correctness of Magpie V2 Codebase.

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged0110
partially resolved0000
resolved2523
fly.trade  V2

fly.trade V2

High Severity Issues

The Refund Address Can Be Set To Internal Caller In MagpieCelerBridgeV2

Resolved
arrow-right
Description

In MagpieCelerBridgeV2, within the swapIn function the refundAddresses[depositDataHash] is always set to msg.sender. However, the swapIn can be called either by swapInWithMagpieSignature or swapInWithUserSignature which have different authorisation. Therefore, whenever swapInWithUserSignature is called, the refundAddresses can be set to the internal caller. As a result, in the event of the bridge transfer failure, the tokens will be transferred back to the incorrect address.

Contract

MagpieCelerBridgeV2.sol

Recommendation

It is recommended to set the refund address to the fromAddress.

MagpieStargateBridgeV3 Lacks Bridge Slippage

Resolved
arrow-right
Description

In MagpieStargateBridgeV3, within the bridgeIn function, the quoteOFT is called to determine the expected amount of tokens received for the user after bridging (the minAmountLD variable). However, this amount is taken as is, without any extra check against the user's slippage. On the contrary, the MagpieCelerBridgeV2 has user supplied slippage implemented.

Contract

MagpieStargateBridgeV3.sol

Recommendation

It is recommended to implement and use user’s supplied slippage in the MagpieStargateBridgeV3.

Medium Severity Issues

Low Severity Issues

Informational Issues

Appendix

Disclaimer

fly.trade  V2

fly.trade V2

High Severity Issues
Medium Severity Issues
Low 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