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:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user