Bond payout order
The order pox-5 pays bonds in, and who is short-paid first.
pox-5 pays bonds in descending stx-value-ratio, ties to the lower bond index, and each bond receives min(target, what is left). The contract enforces the order (pox-5 L2285-2299).
Current order
GET https://metacenter.0xo.in/api/bonds/order · read at block 976,724
[
{
"position": 0,
"bond_index": 1,
"stx_value_ratio": "310237",
"target_rate_bps": "300",
"shares_sats": "22506212689",
"target_per_interval_sats": "13503727",
"term": {
"period_start_burn_height": 966350,
"l1_unlock_burn_height": 990500,
"term_blocks": 24150,
"elapsed_blocks": 10374,
"remaining_blocks": 13776,
"remaining_intervals": 13,
"read_at_burn_height": 976724
}
},
{
"position": 1,
"bond_index": 3,
"stx_value_ratio": "275260",
"target_rate_bps": "300",
"shares_sats": "100510990000",
"target_per_interval_sats": "60306594",
"term": {
"period_start_burn_height": 974750,
"l1_unlock_burn_height": 998900,
"term_blocks": 24150,
"elapsed_blocks": 1974,
"remaining_blocks": 22176,
"remaining_intervals": 21,
"read_at_burn_height": 976724
}
},
{
"position": 2,
"bond_index": 2,
"stx_value_ratio": "267384",
"target_rate_bps": "300",
"shares_sats": "50509730314",
"target_per_interval_sats": "30305838",
"term": {
"period_start_burn_height": 970550,
"l1_unlock_burn_height": 994700,
"term_blocks": 24150,
"elapsed_blocks": 6174,
"remaining_blocks": 17976,
"remaining_intervals": 17,
"read_at_burn_height": 976724
}
}
]Showing order.value; the full response has more fields.
Sources
| Figure | Label | Source |
|---|---|---|
| Payout order | onchain | get-bond-payout-order |
The stress test applies the same order to a hypothetical pool or book, so you can see which bonds would be paid in full, in part or not at all.