Skip to content

Commit

Permalink
Merge pull request #563 from comdex-official/feature/dev
Browse files Browse the repository at this point in the history
Feature/dev
  • Loading branch information
dheerajkd30 authored Nov 2, 2022
2 parents 66e426a + 33c6e6b commit e386730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/asset/migrations/v5/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func MigrateValueAsset(store sdk.KVStore, cdc codec.BinaryCodec) error {
Denom: "ucmst",
Decimals: sdk.NewInt(1000000),
IsOnChain: false,
IsOraclePriceRequired: false,
IsOraclePriceRequired: true,
}
key3 := assettypes.AssetKey(asset3.Id)
store.Delete(key3)
Expand Down
2 changes: 1 addition & 1 deletion x/liquidation/keeper/liquidate_borrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (k Keeper) UpdateLockedBorrows(ctx sdk.Context, lockedVault types.LockedVau
assetOut, _ := k.asset.GetAsset(ctx, pair.AssetOut)
collateralizationRatio, err := k.lend.CalculateCollateralizationRatio(ctx, lockedVault.AmountIn, assetIn, lockedVault.UpdatedAmountOut, assetOut)
if err != nil {
ctx.Logger().Error("Error Calculating CR in Liquidation, liquidate_borrow.go for locked vault ID %d", lockedVault.LockedVaultId)
//ctx.Logger().Error("Error Calculating CR in Liquidation, liquidate_borrow.go for locked vault ID %d", lockedVault.LockedVaultId)
return err
}
assetInprice, _ := k.market.GetTwa(ctx, assetIn.Id)
Expand Down

0 comments on commit e386730

Please sign in to comment.