We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
safeTransfer
1 parent 99b737d commit bcf897eCopy full SHA for bcf897e
src/UserProxy.sol
@@ -36,7 +36,7 @@ contract UserProxy is IUserProxy {
36
37
/// @inheritdoc IUserProxy
38
function stake(uint256 _amount, address _lqtyFrom) public onlyStakingV2 {
39
- lqty.transferFrom(_lqtyFrom, address(this), _amount);
+ lqty.safeTransferFrom(_lqtyFrom, address(this), _amount);
40
lqty.approve(address(stakingV1), _amount);
41
stakingV1.stake(_amount);
42
emit Stake(_amount, _lqtyFrom);
0 commit comments