Skip to content

Commit

Permalink
fix: always use safeTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
GalloDaSballo committed Oct 10, 2024
1 parent 99b737d commit bcf897e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UserProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ contract UserProxy is IUserProxy {

/// @inheritdoc IUserProxy
function stake(uint256 _amount, address _lqtyFrom) public onlyStakingV2 {
lqty.transferFrom(_lqtyFrom, address(this), _amount);
lqty.safeTransferFrom(_lqtyFrom, address(this), _amount);
lqty.approve(address(stakingV1), _amount);
stakingV1.stake(_amount);
emit Stake(_amount, _lqtyFrom);
Expand Down

0 comments on commit bcf897e

Please sign in to comment.