Closed deepesh-kn closed 4 years ago
For deposit and withdraw flow, the nonce tracking for the sender is done in a single mapping mapping(address => uint256) public nonces;
mapping(address => uint256) public nonces;
If the sender do deposit and withdraw at the same time, then the nonces get messed up and only one of these transactions will succeed.
For deposit and withdraw flow, the nonce tracking for the sender is done in a single mapping
mapping(address => uint256) public nonces;
If the sender do deposit and withdraw at the same time, then the nonces get messed up and only one of these transactions will succeed.