Skip to content
Snippets Groups Projects
Commit 13f28cc5 authored by xiphon's avatar xiphon
Browse files

Project: convert Deposit amounts sum from smallest denomination units to XMR

parent 3d67f234
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class Project extends Model ...@@ -47,7 +47,7 @@ class Project extends Model
} }
public function getAmountReceivedAttribute() { public function getAmountReceivedAttribute() {
return $this->deposits->sum('amount'); return $this->deposits->sum('amount') * 1e-12;
} }
public function getPercentageFundedAttribute() { public function getPercentageFundedAttribute() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment