From b45970a33e2dd092c2e293befc5f482f6cd835c0 Mon Sep 17 00:00:00 2001 From: mbreithecker Date: Wed, 3 Jul 2024 15:45:14 +0200 Subject: [PATCH] chore: update SourceProtocol denom --- app/upgrades/v1_5/upgrade.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/upgrades/v1_5/upgrade.go b/app/upgrades/v1_5/upgrade.go index 4284d8b5..9523b0c2 100644 --- a/app/upgrades/v1_5/upgrade.go +++ b/app/upgrades/v1_5/upgrade.go @@ -205,13 +205,15 @@ func migrateFundersModule(sdkCtx sdk.Context, cdc codec.Codec, fundersStoreKey s newParams := fundersTypes.Params{ CoinWhitelist: []*fundersTypes.WhitelistCoinEntry{ + // Prices were obtained on 03.07.2024 + // KYVE { CoinDenom: globalTypes.Denom, CoinDecimals: uint32(6), MinFundingAmount: math.NewIntFromUint64(oldParams.MinFundingAmount), MinFundingAmountPerBundle: math.NewIntFromUint64(oldParams.MinFundingAmountPerBundle), - CoinWeight: math.LegacyMustNewDecFromStr("0.06"), + CoinWeight: math.LegacyMustNewDecFromStr("0.0358"), }, // Andromeda { @@ -219,15 +221,15 @@ func migrateFundersModule(sdkCtx sdk.Context, cdc codec.Codec, fundersStoreKey s CoinDecimals: uint32(6), MinFundingAmount: math.NewInt(1000_000_000), MinFundingAmountPerBundle: math.NewInt(100_000), - CoinWeight: math.LegacyMustNewDecFromStr("0.1"), + CoinWeight: math.LegacyMustNewDecFromStr("0.1007"), }, // Source Protocol { - CoinDenom: "", // TODO: obtain Source denom + CoinDenom: "ibc/0D2ABDF58A5DBA3D2A90398F8737D16ECAC0DDE58F9792B2918495D499400672", CoinDecimals: uint32(6), MinFundingAmount: math.NewInt(1000_000_000), MinFundingAmountPerBundle: math.NewInt(100_000), - CoinWeight: math.LegacyMustNewDecFromStr("0.21"), + CoinWeight: math.LegacyMustNewDecFromStr("0.0207"), }, }, MinFundingMultiple: oldParams.MinFundingMultiple,