ComposableFi / picasso

Cross-chain IBC Hub
https://app.picasso.xyz/
28 stars 95 forks source link

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

Closed RustNinja closed 5 months ago

RustNinja commented 6 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 6 months ago

Please include an interchain test here

RustNinja commented 6 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 5 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