Check direction of the position before updating the broker position

This commit is contained in:
2025-10-24 02:41:40 +07:00
parent 4489c57f55
commit 554cac7d89
2 changed files with 5 additions and 3 deletions

View File

@@ -56,9 +56,10 @@ public class UserService : IUserService
if (!_authorizedAddresses.Any(a => string.Equals(a, recoveredAddress, StringComparison.OrdinalIgnoreCase)))
{
throw new Exception($"Address {recoveredAddress} not authorized");
throw new Exception($"Address {recoveredAddress} not authorized. Please wait for team approval.");
}
if (recoveredAddress == null || !recoveredAddress.Equals(address))
{
throw new Exception($"Address {recoveredAddress} not corresponding");