Demex Migrator

Demex Migrator Smart Contract Audit Report

Share
Share
EthereumEthereum
DeFiMigrator Contract
EthereumEthereum
DeFiMigrator Contract

QuillAudits audited the Demex Migrator smart contracts on Ethereum between May 8, 2025 and May 12, 2025. The audit found 2 issues: 2 low, of which 2 resolved and 0 acknowledged.

Project Description

This contract enables 1:1 migration of SWTH tokens to DMX tokens by burning SWTH (sent to address(0)) and transferring pre-deposited DMX.

Timeline

S1
May 8, 2025
IA
May 8, 2025
S2
May 12, 2025

Scope of Audit

The scope of this Audit was to analyze the Demex Smart Contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged0000
partially resolved0000
resolved0020
Demex Migrator

Demex Migrator

Low Severity Issues

Use Two-Step Ownership Transfer

Resolved
arrow-right
Description

This contract currently implements a basic single-step ownership transfer through OpenZeppelin's Ownable, which presents a serious security vulnerability. In the existing setup, if the current owner accidentally specifies an incorrect address during an ownership transfer - whether due to a typographical error, copy-paste mistake, or address corruption - the contract ownership would immediately and irreversibly shift to that address.

This dangerous single-point failure could permanently lock out legitimate administrators, as there would be no cancellation mechanism or recovery process available. The consequences would be severe: all owner-restricted functions, including the critical transferToken method, would become permanently inaccessible if ownership is transferred to an invalid or non-responsive address.

Contract

SwthToDmxMigrator.sol

Recommendation

Use OpenZeppelin's Ownable2Step instead of Ownable

Missing Safety Check Before Token Transfer

Resolved
arrow-right
Description

The transferSwth() function does not verify whether the contract has sufficient DMX balance before burning the user's SWTH tokens. While safeTransfer would revert on failure, a pre-check would provide clearer error messaging and prevent unnecessary gas waste from partial execution.

Contract

SwthToDmxMigrator.sol

Recommendation

Add an explicit balance check

Appendix

Disclaimer

Demex Migrator

Demex Migrator

Low Severity 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