Skip to content

Commit

Permalink
Adjust deprecated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Feb 2, 2024
1 parent d7aa564 commit 8ae8322
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Tzkt.Api/Models/Accounts/Delegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public class Delegate : Account
/// <summary>
/// [DEPRECATED]
/// </summary>
public long FrozenDeposit => TotalStakedBalance;
public long FrozenDeposit => StakedBalance;

/// <summary>
/// [DEPRECATED]
Expand Down
4 changes: 2 additions & 2 deletions Tzkt.Api/Models/Baking/BakerRewards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ public class BakerRewards
/// <summary>
/// [DEPRECATED]
/// </summary>
public long SelectedStake => BakingPower;
public long SelectedStake => TotalBakingPower;

/// <summary>
/// [DEPRECATED]
/// </summary>
public long DelegatedBalance => ExternalDelegatedBalance;
public long DelegatedBalance => ExternalStakedBalance + ExternalDelegatedBalance;

/// <summary>
/// [DEPRECATED]
Expand Down
2 changes: 1 addition & 1 deletion Tzkt.Api/Models/Baking/DelegatorRewards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public class DelegatorRewards
/// <summary>
/// [DEPRECATED]
/// </summary>
public long SelectedStake => BakingPower;
public long SelectedStake => TotalBakingPower;

/// <summary>
/// [DEPRECATED]
Expand Down
8 changes: 3 additions & 5 deletions Tzkt.Api/Models/Baking/RewardSplit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Tzkt.Api.Models
namespace Tzkt.Api.Models
{
public class RewardSplit
{
Expand Down Expand Up @@ -322,12 +320,12 @@ public class RewardSplit
/// <summary>
/// [DEPRECATED]
/// </summary>
public long SelectedStake => BakingPower;
public long SelectedStake => TotalBakingPower;

/// <summary>
/// [DEPRECATED]
/// </summary>
public long DelegatedBalance => ExternalDelegatedBalance;
public long DelegatedBalance => ExternalStakedBalance + ExternalDelegatedBalance;

/// <summary>
/// [DEPRECATED]
Expand Down

0 comments on commit 8ae8322

Please sign in to comment.