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

cliffvestingdemo/v1 package

Overview

Package cliffvestingdemo is a small gnoweb demo of the vesting calculator provided by the p/moul/x/daily/cliffvesting(/p/moul/x/daily/cliffvesting/v1) library: the cliff step, the linear ramp, integer rounding, and the two arithmetic bugs the library exists to avoid.

It contains no vesting logic of its own and holds no coins. Stateless, so Render is deterministic, which is precisely what the library is for.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/cliffvestingdemo/v1.Render()"

Result