From b5cc8a857bdf6587f0c838d7bb62ec1e0bb3fadf Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Sat, 21 Sep 2019 21:06:37 -0400 Subject: [PATCH] Removed now-incorrect comments. Resolves #38. Also see 8c62211b for where proceeds were set to the reverse of cost basis. --- src/account.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/account.rs b/src/account.rs index ae5d44c..430c95e 100644 --- a/src/account.rs +++ b/src/account.rs @@ -200,11 +200,11 @@ impl Movement { // proceeds_lk // } - pub fn get_lk_gain_or_loss(&self) -> d128 { // Returns proceeds*2 for Incoming+Flow txns + pub fn get_lk_gain_or_loss(&self) -> d128 { self.proceeds_lk.get() + self.cost_basis_lk.get() } - pub fn get_orig_gain_or_loss(&self) -> d128 { // Returns proceeds*2 for Incoming+Flow txns + pub fn get_orig_gain_or_loss(&self) -> d128 { self.proceeds.get() + self.cost_basis.get() }