Skip to content

Commit 7838c0e

Browse files
authored
Merge branch 'main' into dependabot/github_actions/docker/setup-qemu-action-3
2 parents fe86144 + 4651a51 commit 7838c0e

File tree

2 files changed

+73
-65
lines changed

2 files changed

+73
-65
lines changed

proto/pstake/liquidstake/v1beta1/liquidstake.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ message Params {
2424
// UnstakeFeeRate specifies the fee rate when liquid unstake is requested,
2525
// unbonded by subtracting it from unbondingAmount
2626
string unstake_fee_rate = 3 [
27+
(cosmos_proto.scalar) = "cosmos.Dec",
2728
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
2829
(gogoproto.nullable) = false
2930
];
@@ -54,6 +55,7 @@ message Params {
5455
// rewards. The fee is taken in favour of the fee account (see
5556
// FeeAccountAddress).
5657
string autocompound_fee_rate = 8 [
58+
(cosmos_proto.scalar) = "cosmos.Dec",
5759
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
5860
(gogoproto.nullable) = false
5961
];
@@ -141,8 +143,9 @@ message LiquidValidatorState {
141143

142144
// del_shares define the delegation shares of the validator
143145
string del_shares = 4 [
146+
(cosmos_proto.scalar) = "cosmos.Dec",
144147
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
145-
(gogoproto.nullable) = false
148+
(gogoproto.nullable) = false
146149
];
147150

148151
// liquid_tokens define the token amount worth of delegation shares of the
@@ -162,6 +165,7 @@ message NetAmountState {
162165

163166
// mint_rate is stkXPRTTotalSupply / NetAmount
164167
string mint_rate = 1 [
168+
(cosmos_proto.scalar) = "cosmos.Dec",
165169
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
166170
(gogoproto.nullable) = false
167171
];
@@ -175,12 +179,14 @@ message NetAmountState {
175179
// net_amount is proxy account's native token balance + total liquid tokens +
176180
// total remaining rewards + total unbonding balance
177181
string net_amount = 3 [
182+
(cosmos_proto.scalar) = "cosmos.Dec",
178183
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
179184
(gogoproto.nullable) = false
180185
];
181186

182187
// total_del_shares define the delegation shares of all liquid validators
183188
string total_del_shares = 4 [
189+
(cosmos_proto.scalar) = "cosmos.Dec",
184190
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
185191
(gogoproto.nullable) = false
186192
];
@@ -195,6 +201,7 @@ message NetAmountState {
195201
// total_remaining_rewards define the sum of remaining rewards of proxy
196202
// account by all liquid validators
197203
string total_remaining_rewards = 6 [
204+
(cosmos_proto.scalar) = "cosmos.Dec",
198205
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
199206
(gogoproto.nullable) = false
200207
];

x/liquidstake/types/liquidstake.pb.go

Lines changed: 65 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)