π Smart Contracts
Smart Contracts
This section describes the core smart contracts that power the MALGIST protocol. All contracts are designed with a non-custodial, modular, and adapter-based architecture, deployed on Mantle.
Core Contracts
UniversalVault
The UniversalVault is the main entry point for user funds.
Responsibilities:
Accept single-asset deposits (e.g. USDC)
Track user shares and balances
Execute strategies atomically
Ensure funds remain non-custodial
User funds are never held by off-chain components.
Strategy Contracts
Strategy contracts define how capital is allocated and executed across multiple protocols.
Each strategy specifies:
Target protocols
Capital allocation percentages
Risk level metadata
Execution rules
Strategies are executed via adapters, not hardcoded protocol logic.
Adapter Registry
The Adapter Registry manages approved protocol adapters.
Functions:
Register and whitelist adapters
Prevent unauthorized protocol interactions
Enable modular protocol expansion
Only approved adapters can be used during execution.
Protocol Adapters
Adapters act as standardized bridges between MALGIST and external DeFi protocols.
Characteristics:
One adapter per protocol (e.g. lending, LP, derivatives)
Stateless execution logic
No custody of funds
Fully replaceable and extensible
This design allows MALGIST to support new protocols without modifying core contracts.
Interfaces & Standards
All core contracts rely on shared interfaces to ensure consistency and safety.
Includes:
Vault interface
Strategy interface
Adapter interface
This ensures:
Clear separation of responsibilities
Easier audits and testing
Safer integrations
Design Principles
Non-custodial by default
Modular and extensible architecture
Minimal trusted assumptions
Clear execution boundaries
Optimized for composability
β‘οΈ Next: Build & Test β how developers compile, deploy, and test MALGIST contracts.
Last updated

