Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun committed Dec 3, 2019
1 parent cac1012 commit 5957d4e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
21 changes: 11 additions & 10 deletions x/market/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,17 @@ var (
NewQuerier = keeper.NewQuerier

// variable aliases
ModuleCdc = types.ModuleCdc
TerraPoolDeltaKey = types.TerraPoolDeltaKey
ParamStoreKeyBasePool = types.ParamStoreKeyBasePool
ParamStoreKeyPoolRecoveryPeriod = types.ParamStoreKeyPoolRecoveryPeriod
ParamStoreKeyMinSpread = types.ParamStoreKeyMinSpread
ParmamStoreKeyTobinTax = types.ParmamStoreKeyTobinTax
DefaultBasePool = types.DefaultBasePool
DefaultPoolRecoveryPeriod = types.DefaultPoolRecoveryPeriod
DefaultMinSpread = types.DefaultMinSpread
DefaultTobinTax = types.DefaultTobinTax
ModuleCdc = types.ModuleCdc
TerraPoolDeltaKey = types.TerraPoolDeltaKey
ParamStoreKeyBasePool = types.ParamStoreKeyBasePool
ParamStoreKeyPoolRecoveryPeriod = types.ParamStoreKeyPoolRecoveryPeriod
ParamStoreKeyMinSpread = types.ParamStoreKeyMinSpread
ParmaStoreKeyTobinTax = types.ParmaStoreKeyTobinTax
ParmaStoreKeyIlliquidTobinTaxList = types.ParmaStoreKeyIlliquidTobinTaxList
DefaultBasePool = types.DefaultBasePool
DefaultPoolRecoveryPeriod = types.DefaultPoolRecoveryPeriod
DefaultMinSpread = types.DefaultMinSpread
DefaultTobinTax = types.DefaultTobinTax
)

type (
Expand Down
4 changes: 2 additions & 2 deletions x/market/internal/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ func (k Keeper) PoolRecoveryPeriod(ctx sdk.Context) (res int64) {

// TobinTax is a tax rate on all spot conversions of one Terra into another Terra
func (k Keeper) TobinTax(ctx sdk.Context) (res sdk.Dec) {
k.paramSpace.Get(ctx, types.ParmamStoreKeyTobinTax, &res)
k.paramSpace.Get(ctx, types.ParmaStoreKeyTobinTax, &res)
return
}

// IlliquidTobinTaxList is the exceptions that have to pay a higher tobin tax due to illiquidity
// TobinTax will be used for the denoms which are not in the list
func (k Keeper) IlliquidTobinTaxList(ctx sdk.Context) (res types.TobinTaxList) {
k.paramSpace.Get(ctx, types.ParmamStoreKeyIlliquidTobinTaxList, &res)
k.paramSpace.Get(ctx, types.ParmaStoreKeyIlliquidTobinTaxList, &res)
return
}

Expand Down
8 changes: 4 additions & 4 deletions x/market/internal/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ var (
// Min spread
ParamStoreKeyMinSpread = []byte("minspread")
// Tobin tax
ParmamStoreKeyTobinTax = []byte("tobintax")
ParmaStoreKeyTobinTax = []byte("tobintax")
// Illiquid tobin tax list
ParmamStoreKeyIlliquidTobinTaxList = []byte("illiquidtobintaxlist")
ParmaStoreKeyIlliquidTobinTaxList = []byte("illiquidtobintaxlist")
)

// Default parameter values
Expand Down Expand Up @@ -93,8 +93,8 @@ func (params *Params) ParamSetPairs() subspace.ParamSetPairs {
{Key: ParamStoreKeyBasePool, Value: &params.BasePool},
{Key: ParamStoreKeyPoolRecoveryPeriod, Value: &params.PoolRecoveryPeriod},
{Key: ParamStoreKeyMinSpread, Value: &params.MinSpread},
{Key: ParmamStoreKeyTobinTax, Value: &params.TobinTax},
{Key: ParmamStoreKeyIlliquidTobinTaxList, Value: &params.IlliquidTobinTaxList},
{Key: ParmaStoreKeyTobinTax, Value: &params.TobinTax},
{Key: ParmaStoreKeyIlliquidTobinTaxList, Value: &params.IlliquidTobinTaxList},
}
}

Expand Down

0 comments on commit 5957d4e

Please sign in to comment.