render_example_test.gno
0.41 Kb · 16 lines
1package staking
2
3// ExampleRender pins the realm's Render output as a testable example.
4func ExampleRender() {
5 print(Render(""))
6 // Output:
7 // # Staking Rewards
8 //
9 // Simplified Synthetix-style staking (accounting-only, no coin transfer).
10 //
11 // - **Total staked:** 0
12 // - **Reward rate:** 100 / block (split across stakers)
13 // - **Block height:** 123
14 //
15 // _No stakers yet. Call `Stake(amount)` to join._
16}