Developer Guide

Contract Addresses (Mantle Sepolia)

Contract
Address
Description

AureoRWAPool

0x475F5c184D23D5839123e7CDB23273eF0470C018

Main Vault & Mint/Burn Logic

MockUSDC

0x53b8e9e6513A2e7A4d23F8F9BFe3F5985C9788e4

Testnet Stablecoin (6 Decimals)

Python Agent Logic

Want to run your own bot? Here is the core logic snippet used in main.py.

from web3 import Web3

# 1. Connect to Mantle
w3 = Web3(Web3.HTTPProvider("[https://rpc.sepolia.mantle.xyz](https://rpc.sepolia.mantle.xyz)"))

def check_and_buy(target_price, amount_usdc):
    # 2. Read Oracle Price
    # Returns price with 18 decimals (e.g., 2600 * 10^18)
    price_wei = contract.functions.getGoldPrice18Decimals().call()
    price_human = w3.from_wei(price_wei, 'ether')
    
    print(f"Current Gold Price: ${price_human}")

    # 3. Decide
    if price_human < target_price:
        print("Dip detected! Executing Buy...")
        
        # 4. Act (Trigger Smart Contract)
        # Note: USDC input must be 6 decimals (amount * 10^6)
        amount_6_decimals = int(amount_usdc * 10**6)
        
        tx = contract.functions.buyGold(amount_6_decimals).build_transaction({
            'from': my_wallet_address,
            'nonce': w3.eth.get_transaction_count(my_wallet_address),
        })
        # ... sign and send tx ...