Realm detail
incentives
gno.land/r/g1mv0052e7r6s09f5t9xsqf00nj3tqsgt9dg52jr/zdex/incentives/v2
Indexed deployment identity with independently loaded latest RPC source, functions, and Render.
Indexed deployment
Identity
- Package path
- gno.land/r/g1mv0052e7r6s09f5t9xsqf00nj3tqsgt9dg52jr/zdex/incentives/v2
- Block
- 241019
- Deployed (UTC)
- Transaction
- Yra1c8LyEdXww2YPGXGvHEx6hZpuOyMWZiEzOgIyYKI=
Latest RPC state
Source
package incentives
import (
"gno.land/p/nt/markdown/sanitize/v0"
"gno.land/p/nt/ufmt/v0"
)
func Render(path string) string {
out := "# zdex incentives v2\n\n"
out += "Sidecar gauges on DexPkg. Native `ugnot` via OriginSend. Lump `Fund` or timed `FundProgram`. LP Claim uses LastLP; does not call zdex swap or LP.\n\n"
if paused {
out += "> [!CAUTION]\n> Funding is paused. Claim still works.\n\n"
}
out += ufmt.Sprintf("* Version: **%s**\n* Dex: `%s`\n* Admin: `%s`\n\n", Version(), DexPkg(), admin.String())
out += "## Gauges\n\n"
if gauges.Size() == 0 {
out += "_None yet._\n\n"
} else {
out += "| Pool | acc | funded | on | end | rpb | rem |\n|---|---:|---:|---|---:|---:|---:|\n"
gauges.Iterate("", "", func(_ string, v any) bool {
g := v.(*Gauge)
accrue(g)
on := "off"
if g.On {
on = "on"
}
out += ufmt.Sprintf("| `%s` | %d | %d | %s | %d | %d | %d |\n", sanitize.InlineText(g.ID), g.Acc, g.TotalFunded, on, g.EndH, g.RewardPerBlock, g.Remaining)
return false
})
out += "\n"
}
out += "## Fund\n\n"
out += "Attach `ugnot` with the tx. Lump credit to Acc (duration 0). Any EOA can incentivize a live pool (`totalLP > 0`).\n\n"
out += "<gno-form exec=\"Fund\">\n"
out += "<gno-input name=\"poolID\" placeholder=\"ugnot|SYMBOL\" required=\"true\" />\n"
out += "</gno-form>\n\n"
out += "## FundProgram\n\n"
out += "Timed emission. `durationBlocks >= 28800`. Acc grows on accrue, not at deposit.\n\n"
out += "<gno-form exec=\"FundProgram\">\n"
out += "<gno-input name=\"poolID\" placeholder=\"ugnot|SYMBOL\" required=\"true\" />\n"
out += "<gno-input name=\"durationBlocks\" placeholder=\"28800\" required=\"true\" />\n"
out += "</gno-form>\n\n"
out += "## Claim\n\n"
out += "Settles LastLP then snapshots current PositionOf. Works when paused or gauge off.\n\n"
out += "<gno-form exec=\"Claim\">\n"
out += "<gno-input name=\"poolID\" placeholder=\"ugnot|SYMBOL\" required=\"true\" />\n"
out += "</gno-form>\n"
return out
}
Latest RPC state
Exported functions
- Fund(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, poolID string)
- FundProgram(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, poolID string, durationBlocks int64)
- Sync(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, poolID string) int64
- Claim(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, poolID string) int64
- SetGauge(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, poolID string, on bool)
- SetPaused(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, v bool)
- Version() string
- DexPkg() string
- Admin() string
- Paused() bool
- GaugeSnapshot(poolID string) string
- GaugeList() string
- Claimable(poolID string, owner string) int64
Latest RPC state · Realm Render
zdex incentives v2
Sidecar gauges on DexPkg. Native ugnot via OriginSend. Lump Fund or timed FundProgram. LP Claim uses LastLP; does not call zdex swap or LP.
- Version: 2
- Dex:
gno.land/r/g1mv0052e7r6s09f5t9xsqf00nj3tqsgt9dg52jr/zdex/v2 - Admin:
g1mv0052e7r6s09f5t9xsqf00nj3tqsgt9dg52jr
Gauges
None yet.
Fund
Attach ugnot with the tx. Lump credit to Acc (duration 0). Any EOA can incentivize a live pool (totalLP > 0).
FundProgram
Timed emission. durationBlocks >= 28800. Acc grows on accrue, not at deposit.
Claim
Settles LastLP then snapshots current PositionOf. Works when paused or gauge off.