gpush.gno
0.42 Kb · 14 lines
1package gpush
2
3import (
4 "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/bazaar/bazaarv4"
5)
6
7// Sync writes one wallet's Genesis FeeDiscount into factory.HolderDiscount.
8// Called from the Genesis collection on mint/transfer. Previous realm is this pusher.
9func Sync(cur realm, owner string, bps int64) {
10 if !cur.Previous().IsCode() {
11 panic("gpush: collection realm")
12 }
13 bazaarv4.NoteHolderDiscount(cross(cur), owner, bps)
14}