Skip to content

Commit

Permalink
Merge pull request #3380 from Sifchain/fix/halborn-audit
Browse files Browse the repository at this point in the history
Fix/halborn audit
  • Loading branch information
khdegraaf authored Nov 17, 2022
2 parents cfc2d99 + 757c083 commit 023e910
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/clp/keeper/calculations.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func CalculatePoolUnits(P, R, A, r, a sdk.Uint, sellNativeSwapFeeRate, buyNative
// we'll default to doing the same thing.

if a.IsZero() || r.IsZero() {
return sdk.Uint{}, sdk.Uint{}, 0, sdk.Uint{}, types.ErrInValidAmount
return sdk.Uint{}, sdk.Uint{}, NoSwap, sdk.Uint{}, types.ErrInValidAmount
}

return r, r, NoSwap, sdk.Uint{}, nil
Expand Down
2 changes: 1 addition & 1 deletion x/clp/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func GetLiquidityProviderKey(externalTicker string, lp string) []byte {

func GetDefaultRewardParams() *RewardParams {
return &RewardParams{
LiquidityRemovalLockPeriod: 0,
LiquidityRemovalLockPeriod: 0, // set to zero since it's now only used when starting a new chain e.g. localnet
LiquidityRemovalCancelPeriod: 12 * 60 * 24 * 30,
RewardPeriods: nil,
RewardPeriodStartTime: "",
Expand Down

0 comments on commit 023e910

Please sign in to comment.