Skip to content

Commit

Permalink
chore: Redefine RewardBase.Margin as a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
OnedgeLee committed Dec 10, 2024
1 parent 8daee45 commit 31e2d87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib9c/Delegation/RewardBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class RewardBase : IBencodable, IEquatable<RewardBase>
{
private const string StateTypeName = "reward_base";
private const long StateVersion = 1;
public const int Margin = 2;
private readonly IComparer<Currency> _currencyComparer = new CurrencyComparer();

public RewardBase(
Expand Down Expand Up @@ -140,8 +141,6 @@ private RewardBase(

public int SigFig { get; private set; }

public static int Margin => 2;

public ImmutableDictionary<Currency, FungibleAssetValue> RewardPortion { get; }

public List Bencoded
Expand Down

0 comments on commit 31e2d87

Please sign in to comment.