Skip to content

Commit

Permalink
fix: update default values for clp params
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee committed Dec 12, 2023
1 parent cbfba94 commit 6b4cd0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions x/clp/keeper/executors.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ func (k Keeper) RemoveLiquidity(ctx sdk.Context, pool types.Pool, externalAssetC
k.DestroyLiquidityProvider(ctx, lp.Asset.Symbol, lp.LiquidityProviderAddress)
} else {
lp.LiquidityProviderUnits = lpUnitsLeft
// Set LP’s LastUpdatedBlock to current block height
lp.LastUpdatedBlock = ctx.BlockHeight()
k.SetLiquidityProvider(ctx, &lp)
}
return nil
Expand Down
4 changes: 2 additions & 2 deletions x/clp/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func GetLiquidityProviderKey(externalTicker string, lp string) []byte {

func GetDefaultRewardParams() *RewardParams {
return &RewardParams{
LiquidityRemovalLockPeriod: 12 * 60 * 24 * 50, // 50 days
LiquidityRemovalCancelPeriod: 12 * 60 * 6, // 6 hours
LiquidityRemovalLockPeriod: 12 * 60 * 5, // 5 hours
LiquidityRemovalCancelPeriod: 12 * 60 * 24 * 50, // 50 days
RewardPeriods: nil,
RewardPeriodStartTime: "",
RewardsLockPeriod: 12 * 60 * 24 * 14, // 14 days
Expand Down

0 comments on commit 6b4cd0c

Please sign in to comment.