Exemple #1
0
        public Int32 GetAmountWithFee(Int32 amount, TransferFeeType feeType, Member user)
        {
            int FeePercent = GetTransferFeePercent(feeType, user);

            Money Fee = Money.MultiplyPercent(new Money(amount), FeePercent);

            if (FeePercent > 0 && Fee.AsPoints() == 0)
            {
                Fee = new Money(1);
            }

            return(amount - Fee.AsPoints());
        }