Aureo Vault

Contract Details

Property
Value

Contract Name

AureoRWAPool

Address

0x475F5c184D23D5839123e7CDB23273eF0470C018

Version

v1.0 (Hackathon Release)

Dependencies

OpenZeppelin Ownable, Pyth SDK

Key Features

1

Direct Minting (Buy)

Converts USDC to mGOLD instantly based on Oracle price.

  • Function: buyGold(uint256 usdcAmount)

  • Logic: (USDC * 1e18) / Price

2

Solvency Check (Sell)

Ensures the pool has enough liquidity before allowing a user to burn Gold.

  • Function: sellGold(uint256 goldAmount)

  • Logic: Checks usdc.balanceOf(address(this)) before transfer.

3

Decimal Normalization

Handles the mathematical conversion between:

  • USDC: 6 Decimals

  • mGOLD: 18 Decimals

  • Pyth Price: Variable Exponents

Access Control

Role
Permissions

Owner

Can withdraw stuck tokens (emergency) and update Oracle address.

Public

Anyone can call buyGold and sellGold.