Skip to content

Commit

Permalink
Remove PFM from x/compute incoming stack
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Sep 27, 2023
1 parent 33b360f commit e3f8184
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (ak *SecretAppKeepers) InitCustomKeepers(
// Then we'll pass Fee as an ics4wrapper to everything else.
//
// Compute send: Switch -> Fee -> Packet Forward -> WASM Hooks
// Compute receive: Switch -> Fee -> Packet Forward -> WASM Hooks
// Compute receive: Switch -> Fee -> WASM Hooks
//
// Transfer send: Switch -> Fee -> Packet Forward -> WASM Hooks (WASM Hooks isn't necessary here, but we'll add it for consistency)
// Transfer receive: Switch -> Fee -> Packet Forward -> WASM Hooks
Expand Down Expand Up @@ -455,17 +455,10 @@ func (ak *SecretAppKeepers) InitCustomKeepers(
ak.ComputeKeeper = &computeKeeper
wasmHooks.ContractKeeper = ak.ComputeKeeper

// Compute receive: Switch -> Fee -> Packet Forward -> WASM Hooks
// Compute receive: Switch -> Fee -> WASM Hooks
var computeStack porttypes.IBCModule
computeStack = compute.NewIBCHandler(ak.ComputeKeeper, ak.IbcKeeper.ChannelKeeper, ak.IbcFeeKeeper)
computeStack = ibchooks.NewIBCMiddleware(computeStack, &ibcHooksICS4Wrapper)
computeStack = ibcpacketforward.NewIBCMiddleware(
computeStack,
ak.PacketForwardKeeper,
0,
ibcpacketforwardkeeper.DefaultForwardTransferPacketTimeoutTimestamp, // 10 minutes
ibcpacketforwardkeeper.DefaultRefundTransferPacketTimeoutTimestamp, // 28 days
)
computeStack = ibcfee.NewIBCMiddleware(computeStack, ak.IbcFeeKeeper)
computeStack = ibcswitch.NewIBCMiddleware(computeStack, ak.IbcSwitchKeeper)

Expand Down

0 comments on commit e3f8184

Please sign in to comment.