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:
@@ -0,0 +1,29 @@
|
||||
using System.Numerics;
|
||||
using Nethereum.ABI.FunctionEncoding.Attributes;
|
||||
using Nethereum.Contracts;
|
||||
|
||||
namespace Managing.Infrastructure.Evm.Contracts;
|
||||
|
||||
public class TokenStakesFunction : FunctionMessage
|
||||
{
|
||||
[Parameter("address", "_user", 1)]
|
||||
public string User { get; set; }
|
||||
}
|
||||
|
||||
public class TokenStakesOutputDTO : FunctionOutputDTO
|
||||
{
|
||||
[Parameter("uint256", "", 1)]
|
||||
public BigInteger ReturnValue1 { get; set; }
|
||||
}
|
||||
|
||||
public class GetUserStakedNftsFunction : FunctionMessage
|
||||
{
|
||||
[Parameter("address", "_user", 1)]
|
||||
public string User { get; set; }
|
||||
}
|
||||
|
||||
public class GetUserStakedNftsOutputDTO : FunctionOutputDTO
|
||||
{
|
||||
[Parameter("uint256[]", "", 1)]
|
||||
public List<BigInteger> ReturnValue1 { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user