-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alias removal #517
Alias removal #517
Conversation
defer telemetry.ModuleMeasureSince(types.ModuleName, ctx.BlockTime(), telemetry.MetricKeyBeginBlocker) | ||
|
||
_ = utils.ApplyFuncIfNoError(ctx, func(ctx sdk.Context) error { | ||
if k.GetOracleValidationResult(ctx) { | ||
block := k.GetLastBlockheight(ctx) | ||
if bandKeeper.GetOracleValidationResult(ctx) { |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
if k.GetOracleValidationResult(ctx) { | ||
block := k.GetLastBlockheight(ctx) | ||
if bandKeeper.GetOracleValidationResult(ctx) { | ||
block := bandKeeper.GetLastBlockHeight(ctx) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
id := k.GetLastFetchPriceID(ctx) | ||
data, _ := k.GetFetchPriceResult(ctx, bandoraclemoduletypes.OracleRequestID(id)) | ||
scriptID := k.GetFetchPriceMsg(ctx).OracleScriptID | ||
if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero && ctx.BlockHeight() != block && bandKeeper.GetCheckFlag(ctx) { |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
data, _ := k.GetFetchPriceResult(ctx, bandoraclemoduletypes.OracleRequestID(id)) | ||
scriptID := k.GetFetchPriceMsg(ctx).OracleScriptID | ||
if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero && ctx.BlockHeight() != block && bandKeeper.GetCheckFlag(ctx) { | ||
assets := assetKeeper.GetAssets(ctx) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
scriptID := k.GetFetchPriceMsg(ctx).OracleScriptID | ||
if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero && ctx.BlockHeight() != block && bandKeeper.GetCheckFlag(ctx) { | ||
assets := assetKeeper.GetAssets(ctx) | ||
id := bandKeeper.GetLastFetchPriceID(ctx) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
if ctx.BlockHeight()%types.Int64Twenty == types.Int64Zero && ctx.BlockHeight() != block && bandKeeper.GetCheckFlag(ctx) { | ||
assets := assetKeeper.GetAssets(ctx) | ||
id := bandKeeper.GetLastFetchPriceID(ctx) | ||
data, _ := bandKeeper.GetFetchPriceResult(ctx, bandoraclemoduletypes.OracleRequestID(id)) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
assets := assetKeeper.GetAssets(ctx) | ||
id := bandKeeper.GetLastFetchPriceID(ctx) | ||
data, _ := bandKeeper.GetFetchPriceResult(ctx, bandoraclemoduletypes.OracleRequestID(id)) | ||
scriptID := bandKeeper.GetFetchPriceMsg(ctx).OracleScriptID |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
} | ||
} | ||
} else { | ||
assets := k.GetAssets(ctx) | ||
assets := assetKeeper.GetAssets(ctx) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
Changes include -
removal of the alias. go from modules - vault, token mint, rewards, market, locker, and liquidation