Technical Information
Protocol addresses and blockchain specifications
This page contains all essential technical information for interacting with Pupas Protocol on the Waves blockchain.
Smart Contract Addresses
Main Protocol Contract
Address:
3P6Ns1K7qVYkXxeQqgQT5B7Ldu6squzroDMType: DApp (Decentralized Application)
Network: Waves Mainnet
Language: RIDE
Treasury Address
Address:
3P6GcYvq5SvZJVFV9wT9NVkavAL1MJzARmoPurpose: Protocol fee collection (0.3% of stake amount)
Access: Controlled by protocol governance
Supported Token Addresses
USDTu (Waves Native)
Asset ID:
34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJSymbol: USDTu
Decimals: 6
Network: Waves Mainnet
Type: Native Waves token
USDT-ERC20 (Bridged)
Asset ID:
9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsiSymbol: USDT-ERC20-PPT
Network: Ethereum → Waves (via gateway)
Type: Bridged token
Status: Supported for staking
LP Token
Asset ID:
8noP1ct6QykJ245Gr7xFbRDGY5uELp46T3gFc1GWgS3fName: PUPAS LP
Description: PUPAS AI TREASURY LP
Decimals: 6
Type: Reissuable Waves token
Supply: Dynamic (minted/burned based on staking)
Contract Functions
Public Functions
provide()
Purpose: Stake USDTu or USDT-ERC20 tokens
Input: Payment attachment (USDTu or USDT-ERC20)
Output: LP tokens minted to caller
Fee: 0.3% protocol fee sent to treasury
withdraw(assetIdStr: String, lendMarketStr: String)
Purpose: Burn LP tokens and withdraw USDTu/USDT-ERC20
Input: LP token payment + asset type selection
Output: USDTu or USDT-ERC20 returned to caller
Fee: No withdrawal fee
updateLpPrice(lpPrice: Int)
Purpose: Update LP token price via oracle
Access: Self-invoke only (contract governance)
Validation: Maximum 10% price change per update
Frequency: Hourly updates
Administrative Functions
init(usdtIdStr: String, usdtuIdStr: String)
Purpose: Initialize protocol with supported tokens
Access: Self-invoke only
Output: Creates LP token and sets configuration
Protocol Constants
Fee Structure
Protocol Fee:
MintFee = 3000(0.3% with 6 decimal precision)Scale Factor:
Scale6 = 1000000(6 decimal precision)Fee Destination: Treasury address
Risk Management
Oracle Volatility Tolerance:
100000(10% maximum price change)Price Update Frequency: Hourly
Validation: Comprehensive error checking
Data Storage Keys
Configuration Keys
setup_usdtId: USDT-ERC20 asset ID configurationsetup_usdtuId: USDTu asset ID configurationsetup_lpId: LP token asset ID configuration
Runtime Data
global_lpPrice: Current LP token price (6 decimal precision)
Network Information
Waves Blockchain
Network: Mainnet
Block Time: ~1 minute
Transaction Fees: ~0.005 WAVES
Confirmation Time: 1-2 minutes
Explorer: wavesexplorer.com
Contract Explorer Links
Integration Guide
For Developers
Contract Interaction
Data Queries
For Users
Required Wallet Setup
Waves-compatible wallet (Waves.Exchange, Keeper, WX Network)
WAVES tokens for transaction fees
USDTu or USDT-ERC20 for staking
Transaction Flow
Connect Wallet: To pupas.ai platform
Select Token: USDTu or USDT-ERC20
Enter Amount: Minimum stake amount
Confirm Transaction: Pay network fees + protocol fee
Receive LP Tokens: Automatically minted to your wallet
Security Notice: Always verify contract addresses before interacting. Never share private keys or seed phrases with anyone.
Last updated