Add validation for Kudai strategy staking requirements in StartCopyTradingCommandHandler. Implemented methods in IEvmManager to retrieve staked KUDAI balance and GBC NFT count. Enhanced error handling for staking checks.

This commit is contained in:
2025-11-17 12:57:47 +07:00
parent 4b24a934ad
commit 8697f1598d
4 changed files with 147 additions and 13 deletions

View File

@@ -93,4 +93,18 @@ public interface IEvmManager
DateTime? toDate = null,
int pageIndex = 0,
int pageSize = 20);
/// <summary>
/// Gets the staked KUDAI balance for a specific address
/// </summary>
/// <param name="address">The wallet address to check</param>
/// <returns>The amount of KUDAI tokens staked</returns>
Task<decimal> GetKudaiStakedBalance(string address);
/// <summary>
/// Gets the count of staked GBC NFTs for a specific address
/// </summary>
/// <param name="address">The wallet address to check</param>
/// <returns>The number of GBC NFTs staked</returns>
Task<int> GetGbcStakedCount(string address);
}