galacticcouncil / Basilisk-node

Basilisk - cross-chain liquidity protocol on Kusama
Apache License 2.0
67 stars 20 forks source link

Make trading fees configurable for each pool #561

Open jakubgregus opened 2 years ago

jakubgregus commented 2 years ago

https://github.com/galacticcouncil/Basilisk-node/blob/9624ace5a4a041c68840262a99ff2c3269159268/pallets/xyk/src/lib.rs#L94

mrq1911 commented 2 years ago

i think we can make this change with minimal impact on the API and existing code by introducing new storage with a fee per pool (current constant will be the default) and extrinsic set_fee callable by the specified origin.

The question is who (the origin) will be able to set the fee? referendum?