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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

arena package

Overview

Package arena is a SocialFi realm: profiles, posts, follows, GNOT tips, and creator tickets priced on a quadratic bonding curve.

Ticket collateral sits in this realm as totalReserve. Trade fees are forwarded out of that collateral, and Sweep only sends coins above it.

Function

QuoteBuy

func QuoteBuy(handle string, amount int) (due, curve, creatorFee, protocolFee, referralFee int64)
Ask AI Claude ChatGPT

QuoteBuy is the exact ugnot a buyer must attach to mint amount tickets. due = curve + creator fee + protocol fee + referral fee. curve is what stays in the reserve. Fees are paid on top and forwarded.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g10ragdr3cjqkael8rslpw4y6rlelhev4h0fswcx/arena.QuoteBuy(,)"

Result