Skip to content

Commit

Permalink
Check and fix leverage LP allocated amount (#630)
Browse files Browse the repository at this point in the history
* fix percent

* remove protection

* devnet

* update
  • Loading branch information
amityadav0 authored Jun 27, 2024
1 parent dd4e426 commit e6f1f36
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy in devnet
on:
push:
branches:
- devnet
- main
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/devnet-branch-protection.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/main-branch-protection.yml

This file was deleted.

2 changes: 1 addition & 1 deletion x/amm/client/wasm/query_earn_mining_pool_all.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (oq *Querier) generateEarnPool(ctx sdk.Context, ammPool *types.Pool, filter

leverageLpPool, found := oq.leveragelpKeeper.GetPool(ctx, ammPool.PoolId)
if found {
leverageLpPercent = leverageLpPool.Health
leverageLpPercent = leverageLpPool.LeveragedLpAmount.ToLegacyDec().Quo(ammPool.TotalShares.Amount.ToLegacyDec()).Mul(sdk.NewDec(100))
}

perpetualPool, found := oq.perpetualKeeper.GetPool(ctx, ammPool.PoolId)
Expand Down

0 comments on commit e6f1f36

Please sign in to comment.