ComposableFi / composable-cosmos

The home of IBC
29 stars 95 forks source link

Rustninja/cosmos eth fees #450

Closed RustNinja closed 6 months ago

RustNinja commented 6 months ago

Introduced 2 modules:

All fee -> min fee + percentage is going to be send to FeeAddress If New amount after fee is less or equal 0 then no IBC transfer will happen.

The data structure of params that easy to retrieve by query command also possible to update via governance proposal with update params message.

{
   channelFee : {
         Channel: "channel-0",
         FeeAddress : "centauri......."
         AllowedTokens : {
               Percentage : 500, //500 means amount / 500 -> 0.25% from transfer amount
               MinFee : {
                      Denom : "ATOM",
                      Amount : 1000000....
               }
         }
   }
}

Small todo! Add upgrade handler depends on the branch from what we are going to release.