diff --git a/.github/workflows/protocol-build-and-push.yml b/.github/workflows/protocol-build-and-push.yml index ade5341369..ec435361f7 100644 --- a/.github/workflows/protocol-build-and-push.yml +++ b/.github/workflows/protocol-build-and-push.yml @@ -3,6 +3,7 @@ name: Protocol Build & Push Image to AWS ECR on: # yamllint disable-line rule:truthy push: branches: + - tra617 - main - 'release/protocol/v[0-9]+.[0-9]+.x' # e.g. release/protocol/v0.1.x - 'release/protocol/v[0-9]+.x' # e.g. release/protocol/v1.x diff --git a/protocol/x/listing/keeper/listing.go b/protocol/x/listing/keeper/listing.go index 3141933630..82d190620d 100644 --- a/protocol/x/listing/keeper/listing.go +++ b/protocol/x/listing/keeper/listing.go @@ -148,7 +148,10 @@ func (k Keeper) CreatePerpetual( } // calculate atomic resolution from reference price - atomicResolution := types.ResolutionOffset - int32(math.Floor(math.Log10(float64(metadata.ReferencePrice)))) + // atomic resolution = -6 - (log10(referencePrice) - decimals) + atomicResolution := types.ResolutionOffset - + (int32(math.Floor(math.Log10(float64(metadata.ReferencePrice)))) - + int32(marketMapDetails.Ticker.Decimals)) // Create a new perpetual perpetual, err := k.PerpetualsKeeper.CreatePerpetual(