コード例 #1
0
ファイル: TransferManager.cs プロジェクト: dovanduy/titan
        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());
        }