2
0
mirror of synced 2025-01-13 01:54:07 +00:00

18 lines
458 B
C#
Raw Normal View History

2024-06-14 11:05:29 +02:00
using CodexContractsPlugin.ChainMonitor;
using DiscordRewards;
namespace TestNetRewarder
{
public class RewardChecker
2024-06-14 11:05:29 +02:00
{
public RewardChecker(IRewardGiver giver)
2024-06-14 11:05:29 +02:00
{
var repo = new RewardRepo();
var checks = repo.Rewards.Select(r => new RewardCheck(r, giver)).ToArray();
2024-08-21 13:59:54 +02:00
Handler = new ChainStateChangeHandlerMux(checks);
2024-06-14 11:05:29 +02:00
}
public IChainStateChangeHandler Handler { get; }
2024-06-14 11:05:29 +02:00
}
}