Added Currency.DisplayCode and µBTC
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using Swarmops.Basic.Types;
|
||||
using Swarmops.Database;
|
||||
|
||||
@@ -37,5 +38,18 @@ namespace Swarmops.Logic.Financial
|
||||
return FromIdentityAggressive(
|
||||
SwarmDb.GetDatabaseForWriting().CreateCurrency(code, name, sign));
|
||||
}
|
||||
|
||||
public string DisplayCode
|
||||
{
|
||||
get
|
||||
{
|
||||
if (base.Code == "BTC")
|
||||
{
|
||||
return "µBTC";
|
||||
}
|
||||
|
||||
return base.Code;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user