Skip to content

Commit 7f3d71b

Browse files
charleenfeicolin-axnercrodriguezvega
authored
chore: update fee middleware docs to be more explicit about reasoning for removing invariant checks (cosmos#1705)
* fix broken link * fix: rm AllowUpdateAfter... check (cosmos#1118) * update code & test * update proto and adr026 * update CHANGELOG * update cli docs * update broken milestone link * updated fee middleware docs wrt invariants * second review * update docs to remove language about removing invariants * update docs/middleware/ics29-fee/fee-distribution.md Co-authored-by: colin axnér <[email protected]> Co-authored-by: colin axnér <[email protected]> Co-authored-by: Carlos Rodriguez <[email protected]>
1 parent 43331f3 commit 7f3d71b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/middleware/ics29-fee/fee-distribution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The counterparty payee address registered on the destination chain is encoded in
3131
A transaction must be submitted **to the destination chain** including a `CounterpartyPayee` address of an account on the source chain.
3232
The transaction must be signed by the `Relayer`.
3333

34-
Note: If a module account address is used as the `CounterpartyPayee` it is recommended to [turn off invariant checks](https://github.com/cosmos/ibc-go/blob/71d7480c923f4227453e8a80f51be01ae7ee845e/testing/simapp/app.go#L659) for that module.
34+
Note: If a module account address is used as the `CounterpartyPayee` but the module has been set as a blocked address in the `BankKeeper`, the refunding to the module account will fail. This is because many modules use invariants to compare internal tracking of module account balances against the actual balance of the account stored in the `BankKeeper`. If a token transfer to the module account occurs without going through this module and updating the account balance of the module on the `BankKeeper`, then invariants may break and unknown behaviour could occur depending on the module implementation. Therefore, if it is desirable to use a module account that is currently blocked, the module developers should be consulted to gauge to possibility of removing the module account from the blocked list.
3535

3636
```go
3737
type MsgRegisterCounterpartyPayee struct {

0 commit comments

Comments
 (0)