Added Currency.DisplayCode and µBTC

This commit is contained in:
Rick Falkvinge
2014-11-16 00:44:32 +01:00
parent c4387f6a56
commit 7763fdc120
+14
View File
@@ -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;
}
}
}
}