ping-pub / explorer

A light explorer for Cosmos-based Blockchains.
https://ping.pub
GNU General Public License v2.0
312 stars 970 forks source link

On GenesisL1 chain fees are incorrect when you add the chain with ping.pub #343

Open manueldalb2 opened 1 year ago

manueldalb2 commented 1 year ago

When you add the chain with Osmosis:

{
"rpc": "https://26657.genesisl1.org", "rest": "https://api.genesisl1.org", "chainId": "genesis_29-2", "chainName": "GenesisL1", "bip44": { "coinType": 118 }, "bech32Config": { "bech32PrefixAccAddr": "genesis", "bech32PrefixAccPub": "genesispub", "bech32PrefixValAddr": "genesisvaloper", "bech32PrefixValPub": "genesisvaloperpub", "bech32PrefixConsAddr": "genesisvalcons", "bech32PrefixConsPub": "genesisvalconspub" }, "currencies": [ { "coinDenom": "L1", "coinMinimalDenom": "el1", "coinDecimals": 18, "coinGeckoId": "pool:el1", "coinImageUrl": "https://frontier.osmosis.zone/tokens/l1.svg" } ], "features": [ "ibc-transfer", "ibc-go" ], "stakeCurrency": { "coinDenom": "L1", "coinMinimalDenom": "el1", "coinDecimals": 18, "coinGeckoId": "pool:el1", "coinImageUrl": "https://frontier.osmosis.zone/tokens/l1.svg" }, "feeCurrencies": [ { "coinDenom": "L1", "coinMinimalDenom": "el1", "coinDecimals": 18, "coinGeckoId": "pool:el1", "coinImageUrl": "https://frontier.osmosis.zone/tokens/l1.svg", "gasPriceStep": { "low": 999999999, "average": 1000000000, "high": 1000000001 } } ], "beta": true }

when you add with ping.pub

{ "chainId": "genesis_29-2", "chainName": "genesisl1", "rpc": "https://26657.genesisl1.org:443", "rest": "https://api.genesisl1.org", "bip44": { "coinType": 118 }, "coinType": 118,

"bech32Config": {
    "bech32PrefixAccAddr": "genesis",
    "bech32PrefixAccPub": "genesispub",
    "bech32PrefixValAddr": "genesisvaloper",
    "bech32PrefixValPub": "genesisvaloperpub",
    "bech32PrefixConsAddr": "genesisvalcons",
    "bech32PrefixConsPub": "genesisvalconspub"
},
"currencies": [
    {
        "coinDenom": "L1",
        "coinMinimalDenom": "el1",
        "coinDecimals": 18,
        "coinGeckoId": "unknown"

    }
],
"feeCurrencies": [
    {
        "coinDenom": "L1",
        "coinMinimalDenom": "el1",
        "coinDecimals": 18,
        "coinGeckoId": "unknown",
        "gasPriceStep": {
            "low": 0.01,
            "average": 0.025,
            "high": 0.03
        }
    }
],
"gasPriceStep": {
    "low": 0.01,
    "average": 0.025,
    "high": 0.03
},
"stakeCurrency": {

    "coinDenom": "L1",
    "coinMinimalDenom": "el1",
    "coinDecimals": 18,
    "coinGeckoId": "unknown"
},
"features": []

}

you can see the difference:

osmosis: "gasPriceStep": { "low": 999999999, "average": 1000000000, "high": 1000000001 }

ping.pub "gasPriceStep": { "low": 0.01, "average": 0.025, "high": 0.03 }

Osmosis is working, ping.pub no

liangping commented 1 year ago

I remember that it could be configed in the chain.json

StakeandRelax-Validator commented 1 year ago

on chain.registry it seems correct like Osmosis

"fee_tokens": [
  {
    "denom": "el1",
    "low_gas_price": 999999999,
    "average_gas_price": 1000000000,
    "high_gas_price": 1000000001
  }

https://github.com/cosmos/chain-registry/blob/master/genesisl1/chain.json