Function dex_general::pallet::dispatchables::set_exchange_fee
source · pub fn set_exchange_fee<T: Config>(
asset_0: T::AssetId,
asset_1: T::AssetId,
fee_rate: u128
)
Expand description
Set the exchange fee rate.
Arguments
asset_0
: Asset which makes up the pairasset_1
: Asset which makes up the pairfee_rate
: Value denoting the trading fee taken from the amount paid in, multiplied by the fee adjustment to simplify calculations. e.g. 0.3% / 100 = 0.003 0.003 * 10000 = 30 See section 3.2.1 of the Uniswap v2 whitepaper
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_exchange_fee
.