Skip to content

feat: Add logicAddress allowlist security mechanism (SynthLaunch implementation)#22

Open
V-SK wants to merge 1 commit intoChatAndBuild:mainfrom
V-SK:feat/logicaddress-allowlist
Open

feat: Add logicAddress allowlist security mechanism (SynthLaunch implementation)#22
V-SK wants to merge 1 commit intoChatAndBuild:mainfrom
V-SK:feat/logicaddress-allowlist

Conversation

@V-SK
Copy link

@V-SK V-SK commented Feb 7, 2026

Summary

This PR adds a secure logicAddress management mechanism through an allowlist pattern, addressing the security concern raised by @ladyxtel regarding governance for upgradeable logic contracts.

Changes

Added contracts/community/NFAv2-SynthLaunch.sol - an enhanced NFA implementation with:

1. logicAddress Allowlist ✅

  • approvedLogic mapping to whitelist audited logic contracts
  • setLogicAddress() now requires address to be approved (or address(0))
  • Prevents owners from binding malicious unaudited contracts

2. Admin Controls

  • approveLogic(address, reason) - Add to whitelist with audit reference
  • revokeLogic(address, reason) - Remove from whitelist
  • forceResetLogic(tokenId, reason) - Emergency reset for compromised agents
  • renounceOwnership() disabled - Prevents locking the allowlist

3. Key Security Features

  • address(0) always allowed (disable logic)
  • Events for all allowlist changes (audit trail)
  • Backward compatible with existing NFA interface

Deployed & Verified

Related Discussion

This addresses the logicAddress governance concern regarding registry/allowlist for upgradeable logic without introducing rug/attack surface.


SynthLaunch - AI Agent Launchpad on BSC

- Added approvedLogic mapping for whitelisting audited logic contracts
- setLogicAddress() now requires address to be in allowlist (or address(0))
- Admin functions: approveLogic, revokeLogic, forceResetLogic
- Disabled renounceOwnership to prevent locking allowlist
- Events for audit trail

Deployed & verified on BSC Mainnet:
https://bscscan.com/address/0x2b703D4dC84ACB24a0A3F34CBF259D5Cb2B62b19#code

Live at: https://synthlaunch.fun/nfa
@christelbuchanan
Copy link
Contributor

Thank you @V-SK, we will review quickly.
@iflp and @snowmanxm for your attention.

@snowmanxm
Copy link

@V-SK , there are some failed tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments