Playground
gnomod.toml
module = "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/bazaar/gpush" gno = "0.9" [addpkg] creator = "g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt" height = 361551 max_deposit = "40000000ugnot"
gpush.gno
package gpush
import (
"gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/bazaar/bazaarv4"
)
// 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")
}
bazaarv4.NoteHolderDiscount(cross(cur), owner, bps)
}