I like the idea of algorithmically based fees.
As for the variables considered by the algorithm:
- Asset being bridged
- Direction (burn/mint)
- Size of transaction (I am concerned this could be gamed)
- Chain (I do not see the value since we already consider the asset being bridged)
I suggest replacing “Size of transaction” with something based on overall volume for the specific asset. Something like what @loong described in Fee increase one day maybe?
I imagine the algorithm would include constants. Darknodes should be able to vote on adjusting any constants that are part of the algorithm.