-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mainnet and testnet community params (#1753)
- Loading branch information
Showing
2 changed files
with
76 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package app_test | ||
|
||
import ( | ||
"testing" | ||
|
||
sdkmath "cosmossdk.io/math" | ||
"github.com/kava-labs/kava/app" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestUpgradeCommunityParams_Mainnet(t *testing.T) { | ||
require.Equal( | ||
t, | ||
sdkmath.LegacyZeroDec().String(), | ||
app.CommunityParams_Mainnet.StakingRewardsPerSecond.String(), | ||
) | ||
|
||
require.Equal( | ||
t, | ||
// Manually confirmed | ||
"317097.919837645865043125", | ||
app.CommunityParams_Mainnet.UpgradeTimeSetStakingRewardsPerSecond.String(), | ||
"mainnet kava per second should be correct", | ||
) | ||
} | ||
|
||
func TestUpgradeCommunityParams_Testnet(t *testing.T) { | ||
require.Equal( | ||
t, | ||
sdkmath.LegacyZeroDec().String(), | ||
app.CommunityParams_Testnet.StakingRewardsPerSecond.String(), | ||
) | ||
|
||
require.Equal( | ||
t, | ||
// Manually confirmed | ||
"475646879756.468797564687975646", | ||
app.CommunityParams_Testnet.UpgradeTimeSetStakingRewardsPerSecond.String(), | ||
"testnet kava per second should be correct", | ||
) | ||
} |