Type: Upgradeable (UUPS)
Description: Implements a token sale mechanism where users deposit USDC and receive AIBTC tokens at a configurable price.
IERC20 (USDC)
IERC20 (AIBTC)
usdt
IERC20
public
Payment token
cerToken
Token sold
saleActive
bool
Sale status
true
price_usdt
uint256
Price
10
totalDepositedUSDT
Total USDC collected
totalDistributedCER
Total AIBTC distributed
initialize
✅
❌
initializer modifier
deposit
Requires approve
setPrice
Price > 0
startSale
—
stopSale
withdrawUSDC
Multiplies by 1e6
withdrawCER
Multiplies by 1e18
_authorizeUpgrade
UUPS control
Last updated 5 days ago