|
@@ -346,7 +346,7 @@ namespace HyperCube.Models
|
|
{
|
|
{
|
|
var ret = await RunFunction("eth_getBalance", $"\"{address}\",\"latest\"");
|
|
var ret = await RunFunction("eth_getBalance", $"\"{address}\",\"latest\"");
|
|
var balanceWei = AccountModel.ConvertBalance(ret);
|
|
var balanceWei = AccountModel.ConvertBalance(ret);
|
|
- var balanceToken = (double)balanceWei / 1000000000000000000.0;
|
|
|
|
|
|
+ var balanceToken = Math.Round((double)balanceWei / 1000000000000000000.0, 4);
|
|
Console.WriteLine($"GetBalance balanceToken {balanceToken}");
|
|
Console.WriteLine($"GetBalance balanceToken {balanceToken}");
|
|
balance = balanceToken.ToString();
|
|
balance = balanceToken.ToString();
|
|
return balance;
|
|
return balance;
|
|
@@ -538,6 +538,7 @@ namespace HyperCube.Models
|
|
public string[] ParseStringAnswer(string answer)
|
|
public string[] ParseStringAnswer(string answer)
|
|
{
|
|
{
|
|
var ret = new string[] { };
|
|
var ret = new string[] { };
|
|
|
|
+ Console.WriteLine($"ParseStringAnswer: {name}, answer.Length " + answer.Length);
|
|
if (answer.Length > 2)
|
|
if (answer.Length > 2)
|
|
{
|
|
{
|
|
answer = answer.Substring(2, answer.Length - 2);
|
|
answer = answer.Substring(2, answer.Length - 2);
|