ComposableFi / composable-cosmos

The home of IBC
28 stars 95 forks source link

Introduce custom logic into OnRecvPacket in PFM module to charge fee #520

Closed RustNinja closed 2 months ago

RustNinja commented 3 months ago

Introduce custom logic into OnRecvPacket in PFM module to charge fee

this code in custom pfm inside IbcMiddleware OnRecvPacket method introduced by me. https://github.com/ComposableFi/composable-cosmos/blob/rustninja/pmf-middleware/custom/custompfm/keeper/keeper.go#L185-L216

all other code in method OnRecvPacket is taken from original version of OnRecvPacket.

blasrodri commented 3 months ago

Please include an interchain test here

RustNinja commented 3 months ago

Why do you target develop2 ?

target: main (current mainnet) or testnet (current testnet)

this is devnet. first devnet. then will merge into testnet. and will go to testnet.

RustNinja commented 3 months ago

Please highlight the changes to the middleware in the code so it's clear where it's the original middleware and where it's our changes

at the description

i duplicate here too https://github.com/ComposableFi/composable-cosmos/blob/rustninja/pmf-middleware/custom/custompfm/keeper/keeper.go#L185-L216