anoma / namada

Rust implementation of Namada, a Proof-of-Stake L1 for interchain asset-agnostic privacy

Home Page:https://namada.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Denomination for PGF over IBC

yito88 opened this issue · comments

The handled denomination is different between regular PFG and PGF over IBC.
So, the denomination of the amount for PGF over IBC is confusing now. Regular PGF uses the default denomination of NAM, however, the one of an IBC transfer is always zero.

The amount in the logs is based on the default denomination on the source Namada.
The logs aren't correct because the funded amounts were 10 NAM (cPGF over IBC) and 5 NAM (rPGF over IBC).
The proposal's amounts were 10 and 5, and they imply zero denomination.

2024-04-15T19:26:58.340854Z  INFO namada_apps::node::ledger::shell::governance: Added/Updated ContinousPgf from proposal id 0: set 0.000010 to tnam1q9rhgyv3ydq0zu3whnftvllqnvhvhm270qxay5tn.
2024-04-15T19:26:58.341841Z  INFO namada_apps::node::ledger::shell::governance: Execute RetroPgf from proposal id 0: sent 0.000005 to tnam1q9sx4ekzqaq3xdxtruxkm764nhl00cvcsc7df5jf.

We should fix it to use the native token denomination for PGF over IBC too.