POST
/
stake
/
buyback
/
revenue
/
calculate
Calculate Revenue
curl --request POST \
  --url https://prv.stake.biya.io/stake/buyback/revenue/calculate \
  --header 'Content-Type: application/json' \
  --data '
{
  "round_id": "<string>",
  "revenue_pool_amount": "<string>"
}
'
{
  "round_id": "<string>",
  "total_pool": "<string>",
  "participant_count": 123,
  "records": [
    {
      "id": "<string>",
      "round_id": "<string>",
      "participation_id": "<string>",
      "user_address": "<string>",
      "total_pool": "<string>",
      "user_share": "<string>",
      "claimed_amount": "<string>",
      "claim_status": 123,
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ],
  "success": true,
  "message": "<string>"
}

Body

application/json

CalculateRevenueRequest requests revenue calculation

round_id
string
revenue_pool_amount
string

Response

200 - application/json

OK

CalculateRevenueResponse contains revenue calculation result

round_id
string
total_pool
string
participant_count
integer<int32>
records
object[]
success
boolean
message
string