Check direction of the position before updating the broker position
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user