mirror of
https://git.ghostchain.io/proxmio/ghost-node.git
synced 2025-12-27 03:09:56 +00:00
tests for clap and applause events added
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
@@ -573,11 +573,11 @@ impl<T: Config> Pallet<T> {
|
||||
return Ok(())
|
||||
}
|
||||
|
||||
let incoming_fee = T::NetworkDataHandler::get(&clap.network_id)
|
||||
let commission = T::NetworkDataHandler::get(&clap.network_id)
|
||||
.map(|network_data| Perbill::from_parts(network_data.incoming_fee))
|
||||
.unwrap_or_default();
|
||||
.unwrap_or_default()
|
||||
.mul_ceil(clap.amount);
|
||||
|
||||
let commission = incoming_fee.mul_ceil(clap.amount);
|
||||
let final_amount = clap.amount
|
||||
.checked_sub(&commission)
|
||||
.map(|value| T::Currency::minimum_balance()
|
||||
|
||||
Reference in New Issue
Block a user