Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

Playground

gnomod.toml

module = "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/bazaar/gpushv2"
gno = "0.9"

[addpkg]
  creator = "g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt"
  height = 80171
  max_deposit = "50000000ugnot"

gpushv2.gno

package gpushv2

import (
	factory "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/bazaar/bazaarv5"
)

// Sync writes one wallet's Genesis FeeDiscount into factory.HolderDiscount.
// Called from the Genesis collection on mint/transfer. Previous realm is this pusher.
func Sync(cur realm, owner string, bps int64) {
	if !cur.Previous().IsCode() {
		panic("gpush: collection realm")
	}
	factory.NoteHolderDiscount(cross(cur), owner, bps)
}