defuse/fees.rs
1use defuse_core::fees::Pips;
2use near_plugins::AccessControllable;
3use near_sdk::{AccountId, ext_contract};
4
5#[ext_contract(ext_fees_manager)]
6#[allow(clippy::module_name_repetitions)]
7pub trait FeesManager: AccessControllable {
8 /// Set fees for both token_in and token_out
9 fn set_fee(&mut self, fee: Pips);
10 fn fee(&self) -> Pips;
11
12 fn set_fee_collector(&mut self, fee_collector: AccountId);
13 fn fee_collector(&self) -> &AccountId;
14}