πŸ“œ Smart Contracts

πŸ“ Smart Contracts β€” Infraestructura BaaS

EspecificaciΓ³n tΓ©cnica completa de los 15 contratos de producciΓ³n que alimentan la plataforma Business as a Service de SEAL360 (v4.1.0 β€” live en Fuji Testnet).

Estos contratos gestionan membresΓ­as, compensaciones a Founders, gobernanza del protocolo y el token S360. No son contratos DeFi genΓ©ricos β€” estΓ‘n diseΓ±ados especΓ­ficamente para el ecosistema BaaS de SEAL360.

Last Updated: March 16, 2026
Deployment: Avalanche Fuji Testnet
Version: v4.1.0 β€” Fuji Final Sync
Security Audit: OMEGA Audit 100% (8/8 findings fixed)
Test Coverage: 2,460 tests passing (1,484 Hardhat + 976 Foundry β€” 100%)


Core Contracts

SEAL360Token_DIAMOND.sol

The heart of the ecosystem - Diamond-grade security

PropertyValue
Locationcontracts/core/SEAL360Token_v3_DIAMOND.sol
Lines of Code792
InheritsERC20, ERC20Permit, ERC20Votes, ERC20FlashMint, AccessControl, Pausable, ReentrancyGuard
Functions35+ public/external
Security ScoreOMEGA Audit 100% (8/8 findings fixed) βœ…
Contract Address0xe6b3FB013dFA6BBC5930Ed32E5B71AAc89E45f31 (opens in a new tab)

Key Features:

  • βœ… Immutable Supply: 1,296,360,012 S360 (no minting after deployment)
  • βœ… AccessControl: 7 roles (granular permissions)
  • βœ… Flash Loans: ERC-3156 standard with 0.09% fee
  • βœ… Governance: ERC-20Votes for on-chain voting
  • βœ… Pausable + Circuit Breakers: Emergency controls
  • βœ… Anti-bot + Anti-whale: Max TX / Max Wallet limits

Critical Functions (Role-Based):

// AccessControl (not Ownable)
setTradingEnabled(bool)      // DEFAULT_ADMIN_ROLE
setExemptFromLimits(address) // LIMITS_MANAGER_ROLE
setSwapFees(uint256,uint256) // FEE_MANAGER_ROLE
pause()/unpause()            // PAUSER_ROLE
blacklist()/unblacklist()    // BLACKLIST_MANAGER_ROLE

S360StakingRewardsWithLock_v2_4_0.sol

Motor de recompensas por staking con perΓ­odos de lock y penalizaciones

PropertyValue
Locationcontracts/core/S360StakingRewardsWithLock_v2_4_0.sol
Lines of Code895
SecurityReentrancyGuard, Pausable, Ownable2Step
APY4% β†’ 16% (4 tiers)
Locks3M / 6M / 9M / 12M

Key Features:

  • βœ… APY tiers: EXPLORER(4%) / PIONEER(8%) / VISIONARY(12%) / CATALYST(16%)
  • βœ… SEAL Points: Bound SP earned via lock multipliers
  • βœ… Early Withdraw: Penalty (10%–30%) sent to FeeDistributor
  • βœ… Protocol Fee: 0.3 S360 per stake (33/33/34 split)

S360FeeDistribution.sol

Automated 3-way revenue splitter

PropertyValue
Locationcontracts/core/S360FeeDistribution.sol
Lines of Code332
Distribution33.33% / 33.33% / 33.34%
SecurityOwnable2Step, ReentrancyGuard

Distribution Logic:

// fees β†’ treasury / liquidity pool / growth
// sums to exactly 10000 bps (no loss)
// 33.33% Treasury / 33.33% Liquidity Pool / 33.34% Growth

Governance Contracts

S360Governor.sol

On-chain governance system

ParameterValue
Voting Delay1 day
Voting Period7 days
Quorum4% of total supply
Proposal Threshold100,000 S360
TimelockRisk-tiered: 1d / 2d / 3d / 7d

S360TimelockController.sol

Timelock with emergency multisig bypass (4/7)

PropertyValue
Locationcontracts/governance/S360TimelockController.sol
Lines of Code468
SecurityReentrancyGuard, Whitelisted emergency actions
Risk Delays1d / 2d / 3d / 7d

Emergency Flow:

Propose β†’ 4/7 approvals β†’ Execute (bypass timelock)

S360MultiSigTimelock_v1_1.sol

Emergency multisig (β‰₯60% signers)

PropertyValue
Locationcontracts/governance/S360MultiSigTimelock_v1_1.sol
Lines of Code606
Threshold3-of-7 (emergency bypass: 4-of-7)
Timelock1–7 days (by operation type)

Periphery Contracts

S360BondingCurve.sol

Automated market maker with dynamic pricing

PropertyValue
Locationcontracts/periphery/S360BondingCurve.sol
Lines of Code737
SecurityReentrancyGuard, Pausable, Ownable2Step

S360LiquidityManager.sol

Liquidity management + automated rebalancing

PropertyValue
Locationcontracts/periphery/S360LiquidityManager.sol
Lines of Code599
SecurityReentrancyGuard, Ownable2Step

S360RewardDistributor.sol

Airdrops + campaign rewards

PropertyValue
Locationcontracts/periphery/S360RewardDistributor.sol
Lines of Code509
SecurityReentrancyGuard, Pausable

S360EcosystemFund.sol

DAO-controlled ecosystem grants

PropertyValue
Locationcontracts/periphery/S360EcosystemFund.sol
Lines of Code490
SecurityReentrancyGuard, Pausable

S360Vesting.sol (Founder)

Linear vesting with cliff

PropertyValue
Locationcontracts/periphery/S360Vesting.sol
Lines of Code279
Cliff1 year
Duration4 years

S360TeamVesting.sol

Team vesting (multi-beneficiary)

PropertyValue
Locationcontracts/periphery/S360TeamVesting.sol
Lines of Code465
Cliff6 months
Duration2 years

S360TimeVaultRND.sol

5-year R&D lockup vault

PropertyValue
Locationcontracts/periphery/S360TimeVaultRND.sol
Lines of Code263
Lock5 years

S360BondingCurveRegistry.sol

Registry for bonding curve templates

PropertyValue
Locationcontracts/periphery/S360BondingCurveRegistry.sol
Lines of Code70

Compensation Tier Contracts (v4.0.0 - NEW)

Tier1_DirectCommissions.sol

Direct referral commission engine

PropertyValue
Locationcontracts/compensation/Tier1_DirectCommissions.sol
Lines of Code450+
SecurityReentrancyGuard, Pausable, AccessControl
Commission Range6% - 16% (MEMBER=6% β†’ DIAMOND_III=16%)
Contract Address0xeDF243010242B52870b2425EEA2c73a2f9Bf2593 (opens in a new tab)

Key Features:

  • βœ… Direct Commissions: 6-16% segΓΊn rank en referral purchases (con vesting 18-28 meses)
  • βœ… Automated Payouts: Real-time payment processing
  • βœ… Activity Validation: Ensures referrer is active
  • βœ… Audit Status: OMEGA 8/8 findings fixed βœ…

Tier2_BinaryBonus.sol

Binary tree bonus system with dynamic cycling

PropertyValue
Locationcontracts/compensation/Tier2_BinaryBonus.sol
Lines of Code680+
SecurityReentrancyGuard, Pausable, Chainlink Oracle Integration
Bonus per Cycle50 SP Bound per ciclo de 500 BV (pierna dΓ©bil)
Matching Bonus10% de ciclos de tus directs
BV Rate30% del monto de compra califica como BV
Threshold500 S360-equiv. dinΓ‘mico vΓ­a Chainlink ($500 USD)
Contract Address0xf8145469fADFB3802824bd078B2a70b2358dCe6b (opens in a new tab)

Key Features:

  • βœ… Binary Structure: 2-leg (left/right) tree
  • βœ… Spillover Logic: Dynamic placement when legs full
  • βœ… Chainlink Oracle: S360/USD price feed for threshold calculation
  • βœ… Anti-Sybil: weeklyBVCap + 30-day cooldown
  • βœ… Growth Insolvency Protection: pendingCommissions queue
  • βœ… Audit Status: OMEGA 8/8 findings fixed βœ…

Tier3_MatrixCycles.sol

5Γ—5 Matrix with automatic cycling

PropertyValue
Locationcontracts/compensation/Tier3_MatrixCycles.sol
Lines of Code720+
SecurityReentrancyGuard, Pausable, Anti-griefing checks
Matrix Size5Γ—5 (5 niveles, 3,905 posiciones totales)
SP por ciclo completo1,500 SP Bound (L1=100, L2=200, L3=300, L4=400, L5=500)
Contract Address0xefa37A46a6f0bF4EfAd8551c497b9F7A87036a8d (opens in a new tab)

Key Features:

  • βœ… 5Γ—5 Matrix Layout: 25-position grid auto-cycling
  • βœ… Auto-Cycling: Automatic trigger on full matrix
  • βœ… Placement Griefing Protection: NotYourDirect validation
  • βœ… Manual Placement: TEAM SEAL feature (after 6 referrals)
  • βœ… Audit Status: OMEGA 8/8 findings fixed βœ…

Tier4_UnilevelResiduals.sol

Unilevel residual commissions with activity tracking

PropertyValue
Locationcontracts/compensation/Tier4_UnilevelResiduals.sol
Lines of Code480+
SecurityReentrancyGuard, Pausable, Activity Signal validation
Commission RangeL1=5%, L2=3%, L3=2%, L4=1.5%, L5=1%, L6-L10=0.5%
Max Depth10 niveles (MAX_LEVELS = 10)
Pagado enS360 lΓ­quido (NO SP Bound)
Contract Address0x429E8f0b5F9299337eE58Cf06b00EEbA93329931 (opens in a new tab)

Key Features:

  • βœ… Unilevel Structure: Linear downline (10 niveles)
  • βœ… Activity Signal: lastActivityTime validation on all pay paths
  • βœ… Residual Commissions: 5% L1 β†’ 0.5% L6-L10 (en S360 lΓ­quido)
  • βœ… Real-Time Updates: Activity tracked across all tiers
  • βœ… Audit Status: OMEGA 8/8 findings fixed βœ…

CompensationOrchestratorV2.sol

Central orchestration and management hub

PropertyValue
Locationcontracts/compensation/CompensationOrchestratorV2.sol
Lines of Code850+
SecurityAccessControl, ReentrancyGuard, Pausable
Contract Address0x41Ac2e03abfff462D46EC07a54b672aC1fDDeF95 (opens in a new tab)

Key Functions:

// Member Management
registerMember(address, address sponsor, uint8 side)
activateMember(address)
deactivateMember(address)
 
// Compensation Processing
calculateDirectCommission(address member)
calculateBinaryBonus(address member)
calculateMatrixCycle(address member)
calculateUnilevelResidual(address member)
 
// Payments
claimCommissions(uint8[] tierIds)
distributePoolFunds()
 
// Admin
setTierContract(uint8 tierId, address contract)
setCommissionRate(uint8 tierId, uint256 rate)
pause()/unpause()

Support Contracts (v4.0.0)

SEAL360Token Diamond

Diamond proxy implementation for token

PropertyValue
Locationcontracts/core/SEAL360Token_Diamond.sol
PatternERC2535 Diamond (multi-facet upgradeable)
Total Supply1,296,360,012 S360
Contract Address0xe6b3FB013dFA6BBC5930Ed32E5B71AAc89E45f31 (opens in a new tab)

Features:

  • βœ… Diamond Facets: Modular upgrades without data loss
  • βœ… ERC-20 Standard: Full token functionality
  • βœ… Voting Rights: ERC-20Votes integration
  • βœ… Flash Loans: ERC-3156 with 0.09% fee
  • βœ… Anti-whale: Max transaction + max wallet limits

LiquidityReserveFund.sol

Liquidity reserve and ecosystem stability

PropertyValue
Locationcontracts/core/LiquidityReserveFund.sol
Lines of Code380+
SecurityReentrancyGuard, AccessControl
Contract Address0x96b46D40dd9CBF29122fa41418b6069b8585C582 (opens in a new tab)

Functions:

  • βœ… Deposit & Withdraw: Manage liquidity reserves
  • βœ… Rebalancing: Automatic reserve management
  • βœ… Emergency Access: Multi-sig controlled

SPBound (SEAL Points - Bound).sol

Non-transferible SEAL Points for loyalty

PropertyValue
Locationcontracts/core/SPBound.sol
Lines of Code320+
SecurityAccessControl, Pausable
Contract Address0x742BF1e45D5CF2Dc7F78469f01d806E29F056362 (opens in a new tab)

Features:

  • βœ… Non-Transferible: Loyalty points cannot be traded
  • βœ… Earned Via: Staking locks, activity rewards
  • βœ… Reputation System: Tracks member engagement
  • βœ… Tier Unlocks: Required for premium features

Contract Addresses

Fuji Testnet (ACTIVE βœ…)

Network: Avalanche Fuji Testnet
Chain ID: 43113
Deployed: 2026-03-18 / 2026-03-20 UTC
Version: v5.0-omega β€” Fuji Active
Verified Contracts: Core + Governance + LaunchPad verified on Snowtrace
Security: OMEGA Audit 100% (8/8 findings fixed)

Core & Support Contracts

ContractAddressStatus
SEAL360Token (Diamond)0x60Cd92A6A10Bd2f12c2992713E6Eb12c271C695Dβœ… Verified (opens in a new tab)
S360StakingRewards0xb46D12294127b7AC6d3B2175dA78654338ac4365βœ… Active (opens in a new tab)
S360Vesting (Founder)0x079e3Ec7F51823055Ddd5F6fAc1aE6c0B255D46Dβœ… Verified (opens in a new tab)
R&D Vault0x0dcfe7B3D7e762EDbb4E19992aA840541aB65d96βœ… Active (opens in a new tab)
LiquidityReserveFund0xf79617244F594022263E47786Dd2A2931f524354βœ… Active (opens in a new tab)
SPBound0xE6c0eB8115da915Ab88e8C0E118a43F827BFC99Fβœ… Active (opens in a new tab)

Governance Contracts

ContractAddressStatus
S360Governor0x3f2c4656Ef4E6F9EdB65129fd4582944d944E264βœ… Verified (opens in a new tab)
S360TimelockController0x57f8248c8Aa05aF7d7762845F72B33bE294281D2βœ… Verified (opens in a new tab)
MultiSig Admin0xd77F0080FEEFa8cB033437ea431f3206001B63C9βœ… Active (opens in a new tab)

Economic & Periphery Contracts

ContractAddressStatus
S360BondingCurve0xd863D33F2ad92d4df84EC2F095733f8EA1108842βœ… Verified (opens in a new tab)
FeeRouter0xaf0C9A744F687F6252ca65627CB34b55256a663cβœ… Verified (opens in a new tab)

Compensation Tier Contracts (v5.0-omega)

ContractAddressStatus
Tier1_DirectCommissions0x71dcCFDbe4733bDccfc8716dAAc3608109A1Ddacβœ… Active (opens in a new tab)
Tier2_BinaryBonus0x3CD5618B6C49B5Ac11E84981Ed2fB56eDD1cb6C3βœ… Active (opens in a new tab)
Tier3_MatrixCycles0x7E1a0c7357FA5a88a4E060cF5C7D1b071e8f8928βœ… Active (opens in a new tab)
Tier4_UnilevelResiduals0x41558172D2bC548cc980b29206B898a642Fe080Bβœ… Active (opens in a new tab)
CompensationOrchestratorV20x025cc000Bf33B8143250799201AeA685346dC519βœ… Active (opens in a new tab)

LaunchPad v2 Contracts (2026-03-20)

ContractAddressPlan
TokenFactoryS360 v20x660ef5e4277C27B8912cBC81C0eBe064cd5c973fβœ… Verified (opens in a new tab)
SEALTokenStarter (template)0xEce2D641c5ed1f545B473748F467C755c38F54D9100 S360
SEALTokenBusiness (template)0x5E77fe648c7E17a051660644a1B95125d6Fb68371,500 S360
SEALTokenPremium (template)0x3E671f65b1AC583eaDc26FFAfAE8305178B7De805,000 S360

Quick Copy (TypeScript):

// v5.0-omega β€” Fuji deployment (2026-03-18 / 2026-03-20)
export const SEAL360_FUJI_V5 = {
  // Core
  token:             "0x60Cd92A6A10Bd2f12c2992713E6Eb12c271C695D",
  staking:           "0xb46D12294127b7AC6d3B2175dA78654338ac4365",
  vesting_founder:   "0x079e3Ec7F51823055Ddd5F6fAc1aE6c0B255D46D",
  rnd_vault:         "0x0dcfe7B3D7e762EDbb4E19992aA840541aB65d96",
  bondingCurve:      "0xd863D33F2ad92d4df84EC2F095733f8EA1108842",
  // Governance
  governor:          "0x3f2c4656Ef4E6F9EdB65129fd4582944d944E264",
  timelockCtrl:      "0x57f8248c8Aa05aF7d7762845F72B33bE294281D2",
  multisig:          "0xd77F0080FEEFa8cB033437ea431f3206001B63C9",
  // Compensation
  orchestrator:      "0x025cc000Bf33B8143250799201AeA685346dC519",
  lrf:               "0xf79617244F594022263E47786Dd2A2931f524354",
  spBound:           "0xE6c0eB8115da915Ab88e8C0E118a43F827BFC99F",
  tier1:             "0x71dcCFDbe4733bDccfc8716dAAc3608109A1Ddac",
  tier2:             "0x3CD5618B6C49B5Ac11E84981Ed2fB56eDD1cb6C3",
  tier3:             "0x7E1a0c7357FA5a88a4E060cF5C7D1b071e8f8928",
  tier4:             "0x41558172D2bC548cc980b29206B898a642Fe080B",
  feeRouter:         "0xaf0C9A744F687F6252ca65627CB34b55256a663c",
  // LaunchPad v2
  tokenFactory:      "0x660ef5e4277C27B8912cBC81C0eBe064cd5c973f",
  templateStarter:   "0xEce2D641c5ed1f545B473748F467C755c38F54D9",
  templateBusiness:  "0x5E77fe648c7E17a051660644a1B95125d6Fb6837",
  templatePremium:   "0x3E671f65b1AC583eaDc26FFAfAE8305178B7De80",
};

Mainnet (Avalanche C-Chain)

🚧 Coming Q2 2026 β€” Target May 15, 2026 β€” After final external audit

ABIs

All contract ABIs are exported to /abi-exports/:

SEAL360Token.json
S360StakingRewards.json
S360FeeDistribution.json
... (15 files total)

Next Steps