package com.samourai.wallet.whirlpool.models;

public class Coin {
    private String address = "";
    private Float value = 0F;
    //States for recycler view
    private Boolean isSelected = false, blocked = false;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Float getValue() {
        return value;
    }

    public void setValue(Float value) {
        this.value = value;
    }

    public Boolean getSelected() {
        return isSelected;
    }

    public Coin setSelected(Boolean selected) {
        isSelected = selected;
        return this;
    }

    @Override
    public String toString() {
        return this.getAddress().concat("\t");
    }

    public Boolean getBlocked() {
        return blocked;
    }

    public void setBlocked(Boolean blocked) {
        this.blocked = blocked;
    }

}

@@ -40,16 +40,72 @@
 odels;%0A%0A
+import com.samourai.wallet.send.MyTransactionOutPoint;%0A%0A
 public c
@@ -116,16 +116,17 @@
  Coin %7B%0A
+%0A
     priv
@@ -133,58 +133,166 @@
 ate 
-String address = %22%22;%0A    private Float value = 0F;
+MyTransactionOutPoint outpoint = null;%0A%0A    private Coin()  %7B ; %7D%0A%0A    public Coin(MyTransactionOutPoint outpoint)  %7B%0A        this.outpoint = outpoint;%0A    %7D%0A
 %0A   
@@ -429,99 +429,29 @@
 urn 
-address;%0A    %7D%0A%0A    public void setAddress(String address) %7B%0A        this.address = address
+outpoint.getAddress()
 ;%0A  
@@ -466,21 +466,20 @@
  public 
-F
 lo
-at
+ng
  getValu
@@ -503,88 +503,39 @@
 urn 
-value;%0A    %7D%0A%0A    public void setValue(Float value) %7B%0A        this.value = value
+outpoint.getValue().longValue()
 ;%0A  
@@ -719,107 +719,8 @@
  %7D%0A%0A
-    @Override%0A    public String toString() %7B%0A        return this.getAddress().concat(%22%5Ct%22);%0A    %7D%0A%0A
     
@@ -865,10 +865,109 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString() %7B%0A        return this.getAddress().concat(%22%5Ct%22);%0A    %7D%0A%0A
 %7D%0A

use MyTransactionOutpoint