Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

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}