econia-labs / econia

Hyper-parallelized on-chain order book for the Aptos blockchain
https://econia.dev
Other
141 stars 53 forks source link

Consider execution-time fee specification schema with centralized IntegratorFeeStores #640

Open alnoki opened 11 months ago

alnoki commented 11 months ago

Related: #336

Consider allowing fee rate to be specified at execution time, that is, during the function call in which a trade is processed

For example, rather than passing only integrator address, pass integrator and fee_rate_bps, so that integrators can specify the fees.

This schema will allow, for example:

If the specified integrator address doesn't have a IntegratorFeeStore, or if the fee rate is specified as 0, then no fees will be charged

alnoki commented 11 months ago