Skip to content

Commit

Permalink
chore: forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Dec 5, 2024
1 parent 618882c commit ba5977e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
18 changes: 2 additions & 16 deletions src/UserProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ contract UserProxy is IUserProxy {
function stake(uint256 _amount, address _lqtyFrom, bool _doSendRewards, address _recipient)
public
onlyStakingV2
returns (
uint256 lusdReceived,
uint256 lusdSent,
uint256 ethReceived,
uint256 ethSent
)
returns (uint256 lusdReceived, uint256 lusdSent, uint256 ethReceived, uint256 ethSent)
{
uint256 initialLUSDAmount = lusd.balanceOf(address(this));
uint256 initialETHAmount = address(this).balance;
Expand All @@ -64,16 +59,7 @@ contract UserProxy is IUserProxy {
PermitParams calldata _permitParams,
bool _doSendRewards,
address _recipient
)
external
onlyStakingV2
returns (
uint256 lusdReceived,
uint256 lusdSent,
uint256 ethReceived,
uint256 ethSent
)
{
) external onlyStakingV2 returns (uint256 lusdReceived, uint256 lusdSent, uint256 ethReceived, uint256 ethSent) {
require(_lqtyFrom == _permitParams.owner, "UserProxy: owner-not-sender");

try IERC20Permit(address(lqty)).permit(
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IGovernance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface IGovernance {
uint256 ethReceived,
uint256 ethSent
);

event WithdrawLQTY(
address indexed user,
address recipient,
Expand Down

0 comments on commit ba5977e

Please sign in to comment.