Closed PaddyMc closed 2 weeks ago
The changes in this pull request involve updates to error handling in three files: spread_rewards.go
, bankactions.go
, and errors.go
. In spread_rewards.go
, the panic messages for negative values of spreadFactor
and spreadRewardChargeTotal
are enhanced with additional context. In bankactions.go
, the methods mintTo
, burnFrom
, and forceTransfer
are modified to improve error handling related to module accounts, particularly by changing the order of operations in the mintTo
method. Additionally, a new error variable ErrMintToModuleAccount
is introduced in errors.go
.
File Path | Change Summary |
---|---|
x/concentrated-liquidity/swapstrategy/... | Updated panic messages in computeSpreadRewardChargePerSwapStepOutGivenIn for clarity. |
x/tokenfactory/keeper/... | Modified mintTo , burnFrom , and forceTransfer methods to enhance error handling for module accounts. |
x/tokenfactory/types/errors.go | Introduced new error variable ErrMintToModuleAccount with a descriptive message. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What is the purpose of the change
Updating error message on panic
Where is the change documented?
x/{module}/README.md
)