Skip to content

Commit

Permalink
update constants
Browse files Browse the repository at this point in the history
  • Loading branch information
shellvish committed Jan 26, 2024
1 parent ea02062 commit 2f2f290
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 210 deletions.
329 changes: 120 additions & 209 deletions app/upgrades/v18/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,238 +19,149 @@ var (

// Get Initial Redemption Rates for Unbonding Records Migration
RedemptionRatesAtTimeOfProp = map[string]sdk.Dec{
"comdex-1": sdk.MustNewDecFromStr("1.204404927372203376"),
"cosmoshub-4": sdk.MustNewDecFromStr("1.299315098715274953"),
"evmos_9001-2": sdk.MustNewDecFromStr("1.492396096716486696"),
"injective-1": sdk.MustNewDecFromStr("1.215553256473652866"),
"juno-1": sdk.MustNewDecFromStr("1.418210972076073590"),
"osmosis-1": sdk.MustNewDecFromStr("1.201353579705385297"),
"phoenix-1": sdk.MustNewDecFromStr("1.178171857075037002"),
"sommelier-3": sdk.MustNewDecFromStr("1.025900883208774724"),
"stargaze-1": sdk.MustNewDecFromStr("1.429976684963222047"),
"umee-1": sdk.MustNewDecFromStr("1.128473850654652585"),
"comdex-1": sdk.MustNewDecFromStr("1.204789775596912578"),
"cosmoshub-4": sdk.MustNewDecFromStr("1.299673104777517344"),
"evmos_9001-2": sdk.MustNewDecFromStr("1.492732455077015014"),
"injective-1": sdk.MustNewDecFromStr("1.215905443857494066"),
"juno-1": sdk.MustNewDecFromStr("1.418570871812957888"),
"osmosis-1": sdk.MustNewDecFromStr("1.201661807376110166"),
"phoenix-1": sdk.MustNewDecFromStr("1.178481903955981465"),
"sommelier-3": sdk.MustNewDecFromStr("1.025900894556370846"),
"stargaze-1": sdk.MustNewDecFromStr("1.430361044605293188"),
"umee-1": sdk.MustNewDecFromStr("1.128788161214225703"),
}

// Get Amount Unbonded for each HostZone for Unbonding Records Migration
StartingEstimateEpoch = uint64(509)
StartingEstimateEpoch = uint64(510)
RedemptionRatesBeforeProp = map[string]map[uint64]sdk.Dec{
"juno-1": {
480: sdk.MustNewDecFromStr("1.4053501787364933"),
481: sdk.MustNewDecFromStr("1.4053501787364933"),
482: sdk.MustNewDecFromStr("1.4053501787364933"),
484: sdk.MustNewDecFromStr("1.4053501787364933"),
487: sdk.MustNewDecFromStr("1.4087287741035914"),
488: sdk.MustNewDecFromStr("1.4087287741035914"),
489: sdk.MustNewDecFromStr("1.4087287741035914"),
490: sdk.MustNewDecFromStr("1.4099190036765492"),
491: sdk.MustNewDecFromStr("1.4099190036765492"),
493: sdk.MustNewDecFromStr("1.4099190036765492"),
494: sdk.MustNewDecFromStr("1.4099190036765492"),
495: sdk.MustNewDecFromStr("1.4138284392049727"),
496: sdk.MustNewDecFromStr("1.4138284392049727"),
497: sdk.MustNewDecFromStr("1.4138284392049727"),
500: sdk.MustNewDecFromStr("1.4161992241945822"),
501: sdk.MustNewDecFromStr("1.4161992241945822"),
503: sdk.MustNewDecFromStr("1.4161992241945822"),
504: sdk.MustNewDecFromStr("1.4161992241945822"),
505: sdk.MustNewDecFromStr("1.417724248601981"),
507: sdk.MustNewDecFromStr("1.417724248601981"),
508: sdk.MustNewDecFromStr("1.417724248601981"),
495: sdk.MustNewDecFromStr("1.412164551270598"),
496: sdk.MustNewDecFromStr("1.412164551270598"),
497: sdk.MustNewDecFromStr("1.412164551270598"),
500: sdk.MustNewDecFromStr("1.4161495546072012"),
501: sdk.MustNewDecFromStr("1.4161495546072012"),
503: sdk.MustNewDecFromStr("1.4161495546072012"),
504: sdk.MustNewDecFromStr("1.4161495546072012"),
},
"phoenix-1": {
480: sdk.MustNewDecFromStr("1.1617706976314004"),
481: sdk.MustNewDecFromStr("1.1617706976314004"),
482: sdk.MustNewDecFromStr("1.1617706976314004"),
483: sdk.MustNewDecFromStr("1.1617706976314004"),
486: sdk.MustNewDecFromStr("1.1617706976314004"),
487: sdk.MustNewDecFromStr("1.1617706976314004"),
488: sdk.MustNewDecFromStr("1.1617706976314004"),
489: sdk.MustNewDecFromStr("1.1617706976314004"),
490: sdk.MustNewDecFromStr("1.1617706976314004"),
491: sdk.MustNewDecFromStr("1.1617706976314004"),
492: sdk.MustNewDecFromStr("1.1642615263477947"),
493: sdk.MustNewDecFromStr("1.1642615263477947"),
495: sdk.MustNewDecFromStr("1.1642615263477947"),
496: sdk.MustNewDecFromStr("1.1740941880190199"),
498: sdk.MustNewDecFromStr("1.1740941880190199"),
499: sdk.MustNewDecFromStr("1.1740941880190199"),
500: sdk.MustNewDecFromStr("1.175864139818246"),
503: sdk.MustNewDecFromStr("1.175864139818246"),
504: sdk.MustNewDecFromStr("1.1776233988812017"),
505: sdk.MustNewDecFromStr("1.1776233988812017"),
506: sdk.MustNewDecFromStr("1.1776233988812017"),
507: sdk.MustNewDecFromStr("1.1776233988812017"),
508: sdk.MustNewDecFromStr("1.177732197355669"),
496: sdk.MustNewDecFromStr("1.1740619020285001"),
498: sdk.MustNewDecFromStr("1.1740619020285001"),
499: sdk.MustNewDecFromStr("1.1740619020285001"),
500: sdk.MustNewDecFromStr("1.1757224643748854"),
503: sdk.MustNewDecFromStr("1.1757224643748854"),
504: sdk.MustNewDecFromStr("1.176553937681711"),
505: sdk.MustNewDecFromStr("1.176553937681711"),
506: sdk.MustNewDecFromStr("1.176553937681711"),
507: sdk.MustNewDecFromStr("1.176553937681711"),
},
"sommelier-3": {
482: sdk.MustNewDecFromStr("1.0221309385498634"),
483: sdk.MustNewDecFromStr("1.0221309385498634"),
484: sdk.MustNewDecFromStr("1.0221309385498634"),
486: sdk.MustNewDecFromStr("1.022666920867979"),
488: sdk.MustNewDecFromStr("1.022666920867979"),
489: sdk.MustNewDecFromStr("1.022666920867979"),
490: sdk.MustNewDecFromStr("1.023749963371928"),
493: sdk.MustNewDecFromStr("1.023749963371928"),
495: sdk.MustNewDecFromStr("1.024808400658687"),
496: sdk.MustNewDecFromStr("1.024808400658687"),
497: sdk.MustNewDecFromStr("1.024808400658687"),
499: sdk.MustNewDecFromStr("1.024808400658687"),
501: sdk.MustNewDecFromStr("1.0256449837573494"),
502: sdk.MustNewDecFromStr("1.0256449837573494"),
503: sdk.MustNewDecFromStr("1.0256449837573494"),
504: sdk.MustNewDecFromStr("1.0256449837573494"),
505: sdk.MustNewDecFromStr("1.0259008616418266"),
507: sdk.MustNewDecFromStr("1.0259008616418266"),
508: sdk.MustNewDecFromStr("1.0259008616418266"),
495: sdk.MustNewDecFromStr("1.0241481197817144"),
496: sdk.MustNewDecFromStr("1.0241481197817144"),
497: sdk.MustNewDecFromStr("1.0241481197817144"),
499: sdk.MustNewDecFromStr("1.0241481197817144"),
501: sdk.MustNewDecFromStr("1.025236900070852"),
502: sdk.MustNewDecFromStr("1.025236900070852"),
503: sdk.MustNewDecFromStr("1.025236900070852"),
504: sdk.MustNewDecFromStr("1.025236900070852"),
},
"cosmoshub-4": {
484: sdk.MustNewDecFromStr("1.2875942696916478"),
485: sdk.MustNewDecFromStr("1.2875942696916478"),
486: sdk.MustNewDecFromStr("1.2875942696916478"),
487: sdk.MustNewDecFromStr("1.2875942696916478"),
488: sdk.MustNewDecFromStr("1.2901383615073008"),
489: sdk.MustNewDecFromStr("1.2901383615073008"),
490: sdk.MustNewDecFromStr("1.2901383615073008"),
491: sdk.MustNewDecFromStr("1.2901383615073008"),
492: sdk.MustNewDecFromStr("1.2914303773961855"),
493: sdk.MustNewDecFromStr("1.2914303773961855"),
494: sdk.MustNewDecFromStr("1.2914303773961855"),
495: sdk.MustNewDecFromStr("1.2914303773961855"),
496: sdk.MustNewDecFromStr("1.2946765429135605"),
497: sdk.MustNewDecFromStr("1.2946765429135605"),
498: sdk.MustNewDecFromStr("1.2946765429135605"),
499: sdk.MustNewDecFromStr("1.2946765429135605"),
500: sdk.MustNewDecFromStr("1.2966353732132307"),
501: sdk.MustNewDecFromStr("1.2966353732132307"),
502: sdk.MustNewDecFromStr("1.2966353732132307"),
503: sdk.MustNewDecFromStr("1.2966353732132307"),
504: sdk.MustNewDecFromStr("1.2986468613477709"),
505: sdk.MustNewDecFromStr("1.2986468613477709"),
506: sdk.MustNewDecFromStr("1.2986468613477709"),
507: sdk.MustNewDecFromStr("1.2986468613477709"),
508: sdk.MustNewDecFromStr("1.2990760366941585"),
509: sdk.MustNewDecFromStr("1.2990760366941585"),
496: sdk.MustNewDecFromStr("1.2938404518607025"),
497: sdk.MustNewDecFromStr("1.2938404518607025"),
498: sdk.MustNewDecFromStr("1.2938404518607025"),
499: sdk.MustNewDecFromStr("1.2938404518607025"),
500: sdk.MustNewDecFromStr("1.2957672912922817"),
501: sdk.MustNewDecFromStr("1.2957672912922817"),
502: sdk.MustNewDecFromStr("1.2957672912922817"),
503: sdk.MustNewDecFromStr("1.2957672912922817"),
504: sdk.MustNewDecFromStr("1.296926394723948"),
505: sdk.MustNewDecFromStr("1.296926394723948"),
506: sdk.MustNewDecFromStr("1.296926394723948"),
507: sdk.MustNewDecFromStr("1.296926394723948"),
},
"comdex-1": {
485: sdk.MustNewDecFromStr("1.1865251410281585"),
486: sdk.MustNewDecFromStr("1.1865251410281585"),
488: sdk.MustNewDecFromStr("1.1891618527186743"),
489: sdk.MustNewDecFromStr("1.1891618527186743"),
490: sdk.MustNewDecFromStr("1.1891618527186743"),
491: sdk.MustNewDecFromStr("1.1891618527186743"),
492: sdk.MustNewDecFromStr("1.1926667940346496"),
493: sdk.MustNewDecFromStr("1.1926667940346496"),
494: sdk.MustNewDecFromStr("1.1926667940346496"),
495: sdk.MustNewDecFromStr("1.1926667940346496"),
496: sdk.MustNewDecFromStr("1.1973725182109523"),
497: sdk.MustNewDecFromStr("1.1973725182109523"),
498: sdk.MustNewDecFromStr("1.1973725182109523"),
499: sdk.MustNewDecFromStr("1.1973725182109523"),
500: sdk.MustNewDecFromStr("1.2004214235326311"),
501: sdk.MustNewDecFromStr("1.2004214235326311"),
502: sdk.MustNewDecFromStr("1.2004214235326311"),
503: sdk.MustNewDecFromStr("1.2004214235326311"),
504: sdk.MustNewDecFromStr("1.2034589430292977"),
505: sdk.MustNewDecFromStr("1.2034589430292977"),
506: sdk.MustNewDecFromStr("1.2034589430292977"),
507: sdk.MustNewDecFromStr("1.2034589430292977"),
508: sdk.MustNewDecFromStr("1.2040062434963579"),
496: sdk.MustNewDecFromStr("1.1963306878344375"),
497: sdk.MustNewDecFromStr("1.1963306878344375"),
498: sdk.MustNewDecFromStr("1.1963306878344375"),
499: sdk.MustNewDecFromStr("1.1963306878344375"),
500: sdk.MustNewDecFromStr("1.1994537074221134"),
501: sdk.MustNewDecFromStr("1.1994537074221134"),
502: sdk.MustNewDecFromStr("1.1994537074221134"),
503: sdk.MustNewDecFromStr("1.1994537074221134"),
504: sdk.MustNewDecFromStr("1.2019746297343605"),
505: sdk.MustNewDecFromStr("1.2019746297343605"),
506: sdk.MustNewDecFromStr("1.2019746297343605"),
507: sdk.MustNewDecFromStr("1.2019746297343605"),
},
"injective-1": {
464: sdk.MustNewDecFromStr("1.1500807256744128"),
465: sdk.MustNewDecFromStr("1.1500807256744128"),
466: sdk.MustNewDecFromStr("1.1500807256744128"),
467: sdk.MustNewDecFromStr("1.1500807256744128"),
468: sdk.MustNewDecFromStr("1.1500807256744128"),
469: sdk.MustNewDecFromStr("1.1500807256744128"),
470: sdk.MustNewDecFromStr("1.1500807256744128"),
471: sdk.MustNewDecFromStr("1.1500807256744128"),
472: sdk.MustNewDecFromStr("1.1500807256744128"),
473: sdk.MustNewDecFromStr("1.1500807256744128"),
474: sdk.MustNewDecFromStr("1.1500807256744128"),
475: sdk.MustNewDecFromStr("1.1500807256744128"),
476: sdk.MustNewDecFromStr("1.1500807256744128"),
477: sdk.MustNewDecFromStr("1.1500807256744128"),
478: sdk.MustNewDecFromStr("1.1500807256744128"),
479: sdk.MustNewDecFromStr("1.1500807256744128"),
480: sdk.MustNewDecFromStr("1.1500807256744128"),
481: sdk.MustNewDecFromStr("1.1500807256744128"),
482: sdk.MustNewDecFromStr("1.1500807256744128"),
483: sdk.MustNewDecFromStr("1.1500807256744128"),
484: sdk.MustNewDecFromStr("1.1500807256744128"),
485: sdk.MustNewDecFromStr("1.1500807256744128"),
486: sdk.MustNewDecFromStr("1.1500807256744128"),
487: sdk.MustNewDecFromStr("1.1500807256744128"),
488: sdk.MustNewDecFromStr("1.1500807256744128"),
489: sdk.MustNewDecFromStr("1.1500807256744128"),
498: sdk.MustNewDecFromStr("1.1500807256744128"),
499: sdk.MustNewDecFromStr("1.1500807256744128"),
500: sdk.MustNewDecFromStr("1.212374830290344"),
501: sdk.MustNewDecFromStr("1.212374830290344"),
502: sdk.MustNewDecFromStr("1.212374830290344"),
503: sdk.MustNewDecFromStr("1.212374830290344"),
504: sdk.MustNewDecFromStr("1.2147869431614962"),
505: sdk.MustNewDecFromStr("1.2147869431614962"),
507: sdk.MustNewDecFromStr("1.2147869431614962"),
508: sdk.MustNewDecFromStr("1.214906161115688"),
464: sdk.MustNewDecFromStr("1.10904028152176"),
465: sdk.MustNewDecFromStr("1.1092232046811195"),
466: sdk.MustNewDecFromStr("1.1094104738505122"),
467: sdk.MustNewDecFromStr("1.109660102119856"),
468: sdk.MustNewDecFromStr("1.1099206471560683"),
469: sdk.MustNewDecFromStr("1.1101781888690843"),
470: sdk.MustNewDecFromStr("1.1104928343163862"),
471: sdk.MustNewDecFromStr("1.1106814727683936"),
472: sdk.MustNewDecFromStr("1.1109147705303473"),
473: sdk.MustNewDecFromStr("1.1111483631454906"),
474: sdk.MustNewDecFromStr("1.1113789833325327"),
475: sdk.MustNewDecFromStr("1.1115865207841595"),
476: sdk.MustNewDecFromStr("1.1118256565192843"),
477: sdk.MustNewDecFromStr("1.112062977242558"),
478: sdk.MustNewDecFromStr("1.112305089405149"),
479: sdk.MustNewDecFromStr("1.1125496812740654"),
480: sdk.MustNewDecFromStr("1.112796928321449"),
481: sdk.MustNewDecFromStr("1.113045979582398"),
482: sdk.MustNewDecFromStr("1.1133578645679472"),
483: sdk.MustNewDecFromStr("1.1135463131500978"),
484: sdk.MustNewDecFromStr("1.113862639530537"),
485: sdk.MustNewDecFromStr("1.1140510045259582"),
486: sdk.MustNewDecFromStr("1.114295573398525"),
487: sdk.MustNewDecFromStr("1.1145990588175787"),
488: sdk.MustNewDecFromStr("1.114779498371232"),
489: sdk.MustNewDecFromStr("1.1150839991290917"),
498: sdk.MustNewDecFromStr("1.1170896901082266"),
499: sdk.MustNewDecFromStr("1.1498981693771557"),
500: sdk.MustNewDecFromStr("1.209508137205966"),
501: sdk.MustNewDecFromStr("1.209985009275008"),
502: sdk.MustNewDecFromStr("1.210478332327813"),
503: sdk.MustNewDecFromStr("1.2109676716098068"),
504: sdk.MustNewDecFromStr("1.2130924701151315"),
505: sdk.MustNewDecFromStr("1.2136053525521355"),
507: sdk.MustNewDecFromStr("1.21455566769327"),
},
"evmos_9001-2": {
492: sdk.MustNewDecFromStr("1.4846653184918148"),
493: sdk.MustNewDecFromStr("1.4846653184918148"),
494: sdk.MustNewDecFromStr("1.4846653184918148"),
495: sdk.MustNewDecFromStr("1.4877949604847145"),
496: sdk.MustNewDecFromStr("1.4877949604847145"),
497: sdk.MustNewDecFromStr("1.4877949604847145"),
499: sdk.MustNewDecFromStr("1.4895996973002357"),
500: sdk.MustNewDecFromStr("1.4895996973002357"),
501: sdk.MustNewDecFromStr("1.490678848400448"),
502: sdk.MustNewDecFromStr("1.490678848400448"),
503: sdk.MustNewDecFromStr("1.490678848400448"),
504: sdk.MustNewDecFromStr("1.4917210211376328"),
505: sdk.MustNewDecFromStr("1.4917210211376328"),
507: sdk.MustNewDecFromStr("1.4918520366929944"),
508: sdk.MustNewDecFromStr("1.4918520366929944"),
499: sdk.MustNewDecFromStr("1.4895991845634247"),
500: sdk.MustNewDecFromStr("1.4895991845634247"),
501: sdk.MustNewDecFromStr("1.490098715761824"),
502: sdk.MustNewDecFromStr("1.490098715761824"),
503: sdk.MustNewDecFromStr("1.490098715761824"),
504: sdk.MustNewDecFromStr("1.4910458236916064"),
505: sdk.MustNewDecFromStr("1.4910458236916064"),
},
"osmosis-1": {
492: sdk.MustNewDecFromStr("1.1963688867243563"),
493: sdk.MustNewDecFromStr("1.1963688867243563"),
494: sdk.MustNewDecFromStr("1.1963688867243563"),
495: sdk.MustNewDecFromStr("1.1970692695006457"),
496: sdk.MustNewDecFromStr("1.1970692695006457"),
497: sdk.MustNewDecFromStr("1.1970692695006457"),
498: sdk.MustNewDecFromStr("1.1987054330176354"),
499: sdk.MustNewDecFromStr("1.1987054330176354"),
500: sdk.MustNewDecFromStr("1.1987054330176354"),
501: sdk.MustNewDecFromStr("1.1997005791572002"),
502: sdk.MustNewDecFromStr("1.1997005791572002"),
503: sdk.MustNewDecFromStr("1.1997005791572002"),
504: sdk.MustNewDecFromStr("1.200668177509732"),
505: sdk.MustNewDecFromStr("1.200668177509732"),
506: sdk.MustNewDecFromStr("1.200668177509732"),
507: sdk.MustNewDecFromStr("1.2008572054271187"),
508: sdk.MustNewDecFromStr("1.2008572054271187"),
509: sdk.MustNewDecFromStr("1.2008572054271187"),
498: sdk.MustNewDecFromStr("1.1984190041836773"),
499: sdk.MustNewDecFromStr("1.1984190041836773"),
500: sdk.MustNewDecFromStr("1.1984190041836773"),
501: sdk.MustNewDecFromStr("1.1991174772238702"),
502: sdk.MustNewDecFromStr("1.1991174772238702"),
503: sdk.MustNewDecFromStr("1.1991174772238702"),
504: sdk.MustNewDecFromStr("1.2003177583397713"),
505: sdk.MustNewDecFromStr("1.2003177583397713"),
506: sdk.MustNewDecFromStr("1.2003177583397713"),
},
"stargaze-1": {
492: sdk.MustNewDecFromStr("1.4221879666345822"),
493: sdk.MustNewDecFromStr("1.4221879666345822"),
494: sdk.MustNewDecFromStr("1.4221879666345822"),
495: sdk.MustNewDecFromStr("1.4234096730900296"),
496: sdk.MustNewDecFromStr("1.4234096730900296"),
498: sdk.MustNewDecFromStr("1.425950601619048"),
499: sdk.MustNewDecFromStr("1.425950601619048"),
500: sdk.MustNewDecFromStr("1.425950601619048"),
501: sdk.MustNewDecFromStr("1.4273024812101673"),
502: sdk.MustNewDecFromStr("1.4273024812101673"),
503: sdk.MustNewDecFromStr("1.4273024812101673"),
504: sdk.MustNewDecFromStr("1.4288169571251907"),
505: sdk.MustNewDecFromStr("1.4288169571251907"),
506: sdk.MustNewDecFromStr("1.4288169571251907"),
507: sdk.MustNewDecFromStr("1.429363817000515"),
508: sdk.MustNewDecFromStr("1.429363817000515"),
498: sdk.MustNewDecFromStr("1.4246347073913794"),
499: sdk.MustNewDecFromStr("1.4246347073913794"),
500: sdk.MustNewDecFromStr("1.4246347073913794"),
501: sdk.MustNewDecFromStr("1.4267297754925006"),
502: sdk.MustNewDecFromStr("1.4267297754925006"),
503: sdk.MustNewDecFromStr("1.4267297754925006"),
504: sdk.MustNewDecFromStr("1.4279528400269015"),
505: sdk.MustNewDecFromStr("1.4279528400269015"),
506: sdk.MustNewDecFromStr("1.4279528400269015"),
},
"umee-1": {
505: sdk.MustNewDecFromStr("1.1275274920184462"),
505: sdk.MustNewDecFromStr("1.1266406527137283"),
},
}
)
26 changes: 26 additions & 0 deletions dockernet/scripts/consensus_change.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "ParamChange: Change Block Params to Match Cosmos Hub",
"metadata": "Change Block Params",
"summary": "This proposal changes the max gas and block size to match the Cosmos Hub.",
"messages": [
{
"@type": "/cosmos.consensus.v1.MsgUpdateParams",
"authority": "stride10d07y265gmmuvt4z0w9aw880jnsr700jefnezl",
"block": {
"max_bytes": "2000000",
"max_gas": "100000000"
},
"evidence": {
"max_age_num_blocks": "100000",
"max_age_duration": "172800s",
"max_bytes": "1048576"
},
"validator": {
"pub_key_types": [
"ed25519"
]
}
}
],
"deposit": "1000000000ustrd"
}
Loading

0 comments on commit 2f2f290

Please sign in to comment.