The Whitelist Sale contract contains logic for selling BRO token by fixed price for whitelisted accounts e.g. Brotocol NFT Holders.
{
"owner": "terra1...",
"bro_token": "terra1...",
"bro_amount_per_uusd": "10",
"bro_amount_per_nft": "2",
"ust_receiver": "terra1...",
"rewards_pool_contract": "terra1..."
}
Receives a hook message and processes it depending on the received template.
{
"receive": {
"sender": "terra1...",
"amount": "100",
"msg": "<base64_encoded_json_string>"
}
}
Registers sale. Can be executed only by owner.
{
"sale_start_time": 100,
"sale_end_time": 200
}
Registers a list of accounts for sale. Can be executed only by owner.
{
"register_accounts": {
"accounts": [
{
"address": "terra1...",
"owned_nfts_count": 1
}
]
}
}
Purchase bro by fixed price by providing ust amount.
{
"purchase": {}
}
Withdraw remaining bro balance after sale is over.
{
"withdraw_remaining_balance": {}
}
Returns whitelist sale contract config.
{
"config": {}
}
Returns whitelist sale contract state.
{
"state": {}
}
Returns whitelisted account info by specified address.
{
"whitelisted_account": {
"address": "terra1..."
}
}
{}