usdc deposits accrue funding every solana block, on-chain. composable tick-attestation primitive any defi protocol can plug into for sub-second time signals.
神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•
01 / now
written from solana mainnet · pyth
今the chain we live on is moving while you read this.
a new block lands every ≈400ms, carrying — transactions on its back.(kagura accrues in that window.)
sol trades at — on the pyth oracle. that price was attested moments ago.
loading current network state…
02 / vault
a deposit, in time
舞ten thousand dollars, compounding mid-sentence.
a hypothetical $10,000 deposit, accruing the same way the on-chain anchor program will accrue, at the 22% apr target. nothing here is settled — it's the math you'd see at this exact moment.
$10,000.000000
+0.00006971 per second. continuously.
神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•
04 / what
two anchor programs
one is the clock. one is the vault.
刻
primitivekagura-core
a tick-attestation registry. any solana program registers itself with a tick interval (50ms to 60s) and gets an on-chain stream of elapsed_ms deltas via cpi. nothing fancy. just verifiable time.
instructions4
stateKaguraConfig + ProtocolRegistration
eventsTickEmitted
program size242 kb
蔵
showcasekagura-vault
usdc deposit, share-mint, treasury, accumulator. every tick the vault calls principal × rate × elapsed_ms / (10000 × ms_per_year) and moves usdc from treasury → principal. erc-4626 share math, all-on-chain.
instructions7
stateVault + 3 token accounts
eventsDeposited / Withdrawn / FundingTicked
program size397 kb
05 / architecture
on-chain anatomy
構the cpi cycle, drawn.
every tick is one transaction. it touches kagura-core, the vault, and three token accounts. the lines below are the actual cpi + transfer flow.
06 / accrual
the only formula that matters
算principal × rate × elapsed.
accrued
=principal
×rate
×elapsed
÷one year
principal
usdc held by the vault. read directly on every tick.
rate
22% target. capped at 300%. changeable on-chain.
elapsed
wall-clock delta since the last tick, attested by kagura-core.
one year
constant. all math in milliseconds. no float, no drift.
no funky curves. no “dynamic apr based on tvl.” no oracle gymnastics. one formula, ticked at the block level. share price reflects the live yield as a side effect, because the vault holds usdc directly.
神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•神楽CONTINUOUS-TIMETICK神USDC ACCRUES EVERY BLOCK+0.000139 / SEC•舞31_536_000_000 ms / yr刻SOLANA•22.00% APR TARGET蔵•
08 / builders
for anchor devs
繋plug your protocol into the tick stream.
kagura is a primitive. register your protocol once, and every block you get a verifiable wall-clock delta. three patterns unlock from the same primitive.
01入
register
declare your protocol with kagura-core, pick a tick interval, get a pda.
02信
cpi
from any of your instructions, call kagura-core. one struct in, one tick attestation back.
03計
compute
multiply by your protocol's rate × elapsed_ms. the rest of your math runs unchanged.
04放
emit
emit your own event. indexers see both the kagura tick and your domain event.
利
continuous funding
capture funding rate every block instead of every hour. no settlement spikes. lps don't front-run the cron.
9,000× faster than 1h cron
期
real-time options
premium decays every block instead of jumping at midnight UTC. no discrete-time gamma cliff at expiry.
≈400ms decay floor
守
sub-block liquidation
watch margin health every tick. settle deleverage before the cex even sees the wick.