RewardEntry
One reward program on a lending market, one entry per (reward token, source). A borrow-side APR REDUCES the cost of borrowing — dTRINITY dLEND is the extreme case, where the rebate exceeds the interest and the net borrow rate is negative. Rewards are NEVER folded into health-factor or liquidation math: those use the gross rate.
Reward token address, lowercased. For a points program (kind: "points") there is no token and this is a synthetic points:<sourceId> key.
Reward token symbol. Denormalized deliberately — reward tokens are routinely absent from the asset table (aMonUSDe, WMON, aHorRwaRLUSD are live examples), so a join would leave them unnamed.
Token decimals — divide raw amounts by 10 ** decimals.
URL of the logo image.
Reward APR on deposits
Reward APR on variable borrows
Reward APR on stable borrows
token | points. Points are NOT priceable and must be shown separately from any headline APR.
How the reward is realized, i.e. whether the APR is bankable. accrual — claimable from the protocol on-chain; merkl — off-chain merkle distribution; manual.
LEGACY mechanism tag (merkle, onchain-incentives, native) — it cannot distinguish two programs on the same platform. Prefer sourceId.
Stable program identifier, safe to key on: merkl:aave, merkl:euler, merkl:morpho, dtrinity:rebate.
Display string for the program, e.g. Merkl · Aave.
Deep link to THIS program — the exact Merkl opportunity page, not a protocol homepage.
Unix seconds the program stops paying. An APR with two weeks left is not the same product as a standing rate, so render it.
Program-wide payout rate in USD/day, as the source reports it.
refs objectnullable
Platform identifiers verbatim — Merkl campaign ids and opportunity type, or the incentives-controller address for an on-chain program. For support and deduplication, not display.
Platform identifiers verbatim — Merkl campaign ids and opportunity type, or the incentives-controller address for an on-chain program. For support and deduplication, not display.
{
"asset": "string",
"symbol": "string",
"decimals": 0,
"logoURI": "string",
"depositRate": 0,
"variableBorrowRate": 0,
"stableBorrowRate": 0,
"kind": "string",
"claim": "string",
"source": "string",
"sourceId": "string",
"sourceLabel": "string",
"link": "string",
"endsAt": 0,
"startsAt": 0,
"dailyRewardsUsd": 0,
"refs": {}
}