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

bond package

Overview

Package bond is the create-bond policy for gnomemepad — separate from pad so promo schedules can change without redeploying the pad realm.

Pad calls CurrentBondUgnot() at Create time. This package owns:

  • normal bond (default 2 GNOT)
  • promo bond (default ~$20 in ugnot at a fixed GNOT rate, admin-adjustable)
  • 10-day window OR admin EndPromo → back to normal

USD is not on-chain: promo amount is ugnot. Admin sets PromoBondUgnot to approximate $20 (e.g. at $1/GNOT → 20e6 ugnot; at $0.5/GNOT → 40e6).

Function

PromoSecondsLeft

func PromoSecondsLeft() int64

PromoSecondsLeft returns remaining promo seconds (0 if inactive).

Command

gnokey query vm/qeval -remote "https://rpc.sapphire.testnets.gno.land" -data "gno.land/r/g1mv0052e7r6s09f5t9xsqf00nj3tqsgt9dg52jr/gnomemepad/bond.PromoSecondsLeft()"

Result