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

QuoteSell

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

QuoteSell is what a seller receives, and the fees taken out of the curve refund. The reserve drops by the full curve amount, so later sells stay solvent.

Params

Command

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

Result