Skip to Content
Smart ContractsAmber Finance | Smart Contracts

Smart Contracts

Amber Finance utilizes the Mars Protocol smart contracts structure  architecture. All Mars Protocol contracts have been audited by Oak Security and Halborn.

As a fully open-source project, the Mars Protocol smart contracts are licensed under GPL-3.0 and can be reviewed on GitHub here.


Security & Audits

Audit Reports

Amber Finance’s smart contracts have undergone comprehensive security audits:

Security Features

  • Isolated Markets: Each asset operates in its own isolated market
  • Health Factor Monitoring: Real-time liquidation risk assessment
  • Emergency Pause: Ability to pause operations if needed
  • Multi-sig Governance: DAO-controlled parameter updates

Current Deployed Contracts

ContractAddressDescription
Address Providerneutron1...sad65pdCentral registry for all contract addresses
Red Bankneutron1...quugyphLending and borrowing operations
Oracleneutron1...s9vmuyePrice feeds and market data
Duality Swapperneutron1...skg02jpAdvanced DEX integration for swaps
Paramsneutron1...syv5n07Protocol parameters and configuration
Health Computerneutron1...stfmwrzHealth factor calculations and risk assessment
Credit Managerneutron1...qslgs3rCore account management and strategy execution
Account NFTneutron1...q5zqc6eNFT representation of user accounts

Architecture Overview

Key Components

Address Provider

  • Central registry for all contract addresses
  • Enables dynamic contract discovery
  • Facilitates upgrades and migrations

Credit Manager

  • Manages user accounts and positions
  • Executes complex strategies
  • Monitors health factors
  • Handles liquidations

Red Bank

  • Core lending and borrowing logic
  • Interest rate calculations
  • Collateral management
  • Liquidation engine

Duality Swapper

  • Advanced DEX integration
  • Multi-hop routing
  • Enhanced liquidity access

Oracle

  • Real-time price feeds
  • Market data aggregation
  • Risk assessment data

Health Computer

  • Health factor calculations
  • Risk assessment algorithms
  • Liquidation monitoring

Params

  • Protocol configuration
  • Parameter management
  • Governance controls

Account NFT

  • NFT representation of accounts
  • Account ownership verification
  • Transferable positions
Last updated on