Skip to content

Commit

Permalink
add Withdraw event to bathTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
bghughes committed Sep 7, 2021
1 parent a2c2880 commit bf0740a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contracts/rubiconPools/BathToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ contract BathToken {
uint256 sharesReceived,
address depositor
);
event Withdraw(
uint256 amountWithdrawn,
IERC20 asset,
uint256 sharesWithdrawn,
address withdrawer,
uint256 fee,
address feeTo
);

/// @dev Proxy-safe initialization of storage
function initialize(
Expand Down Expand Up @@ -231,6 +239,7 @@ contract BathToken {
uint256 _fee = r.mul(feeBPS).div(10000);
IERC20(underlyingToken).transfer(feeTo, _fee);
underlyingToken.transfer(msg.sender, r.sub(_fee));
emit Withdraw(r.sub(_fee), underlyingToken, _shares, msg.sender, _fee, feeTo);
}

// ** Internal Functions **
Expand Down

1 comment on commit bf0740a

@adem14530
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dear rubicon officials, I am not visible in the system even though I am trading with 0xA6BaaF2B47C28b8347fA4690966298FEae328C72 wallet account, can you help?

Please sign in to comment.