Skip to content

Commit bcf897e

Browse files
committed
fix: always use safeTransfer
1 parent 99b737d commit bcf897e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UserProxy.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ contract UserProxy is IUserProxy {
3636

3737
/// @inheritdoc IUserProxy
3838
function stake(uint256 _amount, address _lqtyFrom) public onlyStakingV2 {
39-
lqty.transferFrom(_lqtyFrom, address(this), _amount);
39+
lqty.safeTransferFrom(_lqtyFrom, address(this), _amount);
4040
lqty.approve(address(stakingV1), _amount);
4141
stakingV1.stake(_amount);
4242
emit Stake(_amount, _lqtyFrom);

0 commit comments

Comments
 (0)