I don't understand what the uint256 variable returns in the lockedAmount function... can anyone tell me?...based on the comment, it returns the balance on the _address.... why is this form used to get a variable using "sender"... uint256 receiedAmount = ILockContract(LOCK_CONTRACT).lockedAmount(sender);

Feb 6, 2022, 7:16 PM
uh show the whole function's code lol
wasting my time on 😂
Feb 6, 2022, 7:17 PM
if (LOCK_CONTRACT != address(0)) {
uint256 receiedAmount = ILockContract(LOCK_CONTRACT).lockedAmount(sender);
if (_balances[sender].sub(amount).sub(receiedAmount) < 0) {
revert();
}
Feb 6, 2022, 7:18 PM
uh that's still not the whole code
Feb 6, 2022, 7:19 PM
Feb 6, 2022, 7:21 PM
It returns the total amount locked by the user lol
Feb 6, 2022, 7:23 PM
how to understand how much the user has blocked?
Feb 6, 2022, 7:25 PM

© 2024 Draquery.com All rights reserved.