34
34
StartTimePrefix = collections .NewPrefix (4 )
35
35
LockingPeriodsPrefix = collections .NewPrefix (5 )
36
36
OwnerPrefix = collections .NewPrefix (6 )
37
- WithdrawedCoinsPrefix = collections .NewPrefix (7 )
38
- UnbondEntriesPrefix = collections .NewPrefix (8 )
37
+ UnbondEntriesPrefix = collections .NewPrefix (7 )
39
38
)
40
39
41
40
var (
@@ -54,7 +53,6 @@ func newBaseLockup(d accountstd.Dependencies) *BaseLockup {
54
53
OriginalLocking : collections .NewMap (d .SchemaBuilder , OriginalLockingPrefix , "original_locking" , collections .StringKey , sdk .IntValue ),
55
54
DelegatedFree : collections .NewMap (d .SchemaBuilder , DelegatedFreePrefix , "delegated_free" , collections .StringKey , sdk .IntValue ),
56
55
DelegatedLocking : collections .NewMap (d .SchemaBuilder , DelegatedLockingPrefix , "delegated_locking" , collections .StringKey , sdk .IntValue ),
57
- WithdrawedCoins : collections .NewMap (d .SchemaBuilder , WithdrawedCoinsPrefix , "withdrawed_coins" , collections .StringKey , sdk .IntValue ),
58
56
UnbondEntries : collections .NewMap (d .SchemaBuilder , UnbondEntriesPrefix , "unbond_entries" , collections .StringKey , codec.CollValue [lockuptypes.UnbondingEntries ](d .LegacyStateCodec )),
59
57
addressCodec : d .AddressCodec ,
60
58
headerService : d .Environment .HeaderService ,
@@ -70,7 +68,6 @@ type BaseLockup struct {
70
68
OriginalLocking collections.Map [string , math.Int ]
71
69
DelegatedFree collections.Map [string , math.Int ]
72
70
DelegatedLocking collections.Map [string , math.Int ]
73
- WithdrawedCoins collections.Map [string , math.Int ]
74
71
// map val address to unbonding entries
75
72
UnbondEntries collections.Map [string , lockuptypes.UnbondingEntries ]
76
73
addressCodec address.Codec
@@ -99,12 +96,6 @@ func (bva *BaseLockup) Init(ctx context.Context, msg *lockuptypes.MsgInitLockupA
99
96
if err != nil {
100
97
return nil , err
101
98
}
102
-
103
- // Set initial value for all locked token
104
- err = bva .WithdrawedCoins .Set (ctx , coin .Denom , math .ZeroInt ())
105
- if err != nil {
106
- return nil , err
107
- }
108
99
}
109
100
110
101
bondDenom , err := getStakingDenom (ctx )
0 commit comments