Pay and claim income
Issuers pay dividends and coupons into an instrument; every holder claims their share, pledged and locked units included.
An issuer pays income once, into the instrument, and every unit on the register earns its share. Each holder claims theirs when they choose; Income has the arithmetic.
Pay (issuers)
You need units outstanding in the instrument, and the amount free in your ledger cash.
Open the desk
On /app/issue, choose Pay income and the instrument.
Enter the amount
In USD. The panel shows the amount per unit, across the units outstanding.
Sign and pay
Press Review payment, then Sign and pay. The payment appears on the instrument's Income tab with its per-unit amount, and every holder's income to claim rises.
// A coupon of 39,000.00 USD on NGATE29
const build = await api.buildPayIncome({ wallet, code: 'NGATE29', amount: '39000000000' })
console.log(build.summary.perUnitScaled) // cash atoms per unit, scaled by 10^12
await send(build, sign)curl -X POST "$AGORA_API/v1/build/pay-income" -H 'content-type: application/json' \
-d '{"wallet":"<wallet>","code":"NGATE29","amount":"39000000000"}'Claim (holders)
Your account lists, per position, the income you can claim now. It counts every unit you held when each payment was made: free, in an open ask, or pledged in a repo.
Find the position
On your account page at /app, Positions shows each instrument's Income to claim, with a button naming the amount in USD, for example Claim 2,925.00.
Claim
Press it: Review claim shows what moves, then Sign and send. The amount moves from the instrument's income pool to your free ledger cash.
const { positions } = await api.account(wallet)
for (const p of positions) {
if (p.incomeToClaim !== '0') await send(await api.buildClaimIncome({ wallet, code: p.code }), sign)
}curl -X POST "$AGORA_API/v1/build/claim-income" -H 'content-type: application/json' \
-d '{"wallet":"<wallet>","code":"NGATE29"}'send is the helper from A first settlement.
What it ends in
| Pay | Claim | |
|---|---|---|
| Issuer's cash, free | − amount | |
| The instrument's income pool | + amount | − what you claim |
| The income index | + amount × 10^12 / outstanding | |
| Your cash, free | + what you claim |
The settlements are the kinds income and claim. Income you don't claim stays yours: it isn't lost when you sell, pledge or lose the units to a default, because your position settles what it earned before its units change.
If it fails
NoUnitsOutstanding: nothing has been issued yet.NotIssuer: the wallet didn't list this instrument.InsufficientFreeCash: the issuer's free cash is short of the amount.NothingToClaim: the position has no whole cash atom to claim.