fn split_into_reserved_and_storage_and_staking_pot(who: &T::AccountId, value: BalanceOf<T>) -> BalanceOf<T> {
        let reserved_amount = T::TaxRatio::get() * value;
        let staking_and_storage_amount = value - reserved_amount;
        let staking_amount = T::StakingRatio::get() * staking_and_storage_amount;
        let storage_amount = staking_and_storage_amount - staking_amount;

        T::Currency::transfer(&who, &Self::reserved_pot(), reserved_amount, KeepAlive).expect("Something wrong during transferring");
        T::Currency::transfer(&who, &Self::staking_pot(), staking_amount, KeepAlive).expect("Something wrong during transferring");
        T::Currency::transfer(&who, &Self::storage_pot(), storage_amount.clone(), KeepAlive).expect("Something wrong during transferring");
        storage_amount
    }
// Split total value into three pot and return the amount in storage pot
// Currently
// 10% into reserved pot
// 72% into staking pot
// 18% into storage pot
Split total value into three pot and return the amount in storage pot
Currently
10% into reserved pot
72% into staking pot
18% into storage pot
Split total value into three pot and return the amount in storage pot Currently 10% into reserved pot 72% into staking pot 18% into storage pot
fn split_into_reserved_and_storage_and_staking_pot(who: &T::AccountId, value: BalanceOf<T>) -> BalanceOf<T> {
        let reserved_amount = T::TaxRatio::get() * value;
        let staking_and_storage_amount = value - reserved_amount;
        let staking_amount = T::StakingRatio::get() * staking_and_storage_amount;
        let storage_amount = staking_and_storage_amount - staking_amount;
        T::Currency::transfer(&who, &Self::reserved_pot(), reserved_amount, KeepAlive).expect("Something wrong during transferring");
        T::Currency::transfer(&who, &Self::staking_pot(), staking_amount, KeepAlive).expect("Something wrong during transferring");
        T::Currency::transfer(&who, &Self::storage_pot(), storage_amount.clone(), KeepAlive).expect("Something wrong during transferring");
        storage_amount
    }
fn split_into_reserved_and_storage_and_staking_pot ( who : & T :: AccountId , value : BalanceOf < T > ) -> BalanceOf < T > { let reserved_amount = T :: TaxRatio :: get ( ) * value ; let staking_and_storage_amount = value - reserved_amount ; let staking_amount = T :: StakingRatio :: get ( ) * staking_and_storage_amount ; let storage_amount = staking_and_storage_amount - staking_amount ; T :: Currency :: transfer ( & who , & Self :: reserved_pot ( ) , reserved_amount , KeepAlive ) . expect ( " " ) ; T :: Currency :: transfer ( & who , & Self :: staking_pot ( ) , staking_amount , KeepAlive ) . expect ( " " ) ; T :: Currency :: transfer ( & who , & Self :: storage_pot ( ) , storage_amount . clone ( ) , KeepAlive ) . expect ( " " ) ; storage_amount }
Split total value into three pot and return the amount in storage pot
Currently
10% into reserved pot
72% into staking pot
18% into storage pot
Split total value into three pot and return the amount in storage pot Currently 10% into reserved pot 72% into staking pot 18% into storage pot
who
&T::AccountId
value
BalanceOf<T>