Skip to content

Commit

Permalink
improve events in MocIntegration and MetaAssetToken
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcloa committed Aug 10, 2023
1 parent 72a250b commit 5c7f936
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/integration/MoC/MocIntegration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract MocIntegration is OwnableUpgradeable, ERC1967UpgradeUpgradeable {

address public mocVendorAccount;

event GetDocFromDllrAndRedeemRBTC(uint256 fromDLLR, uint256 toRBTC);
event GetDocFromDllrAndRedeemRBTC(address indexed from, uint256 fromDLLR, uint256 toRBTC);
event MocVendorAccountSet(address newMocVendorAccount);

/**
Expand Down Expand Up @@ -95,7 +95,7 @@ contract MocIntegration is OwnableUpgradeable, ERC1967UpgradeUpgradeable {
(bool success, ) = msg.sender.call{ value: rbtcAmount }("");
require(success, "MocIntegration:: error transferring redeemed RBTC");

emit GetDocFromDllrAndRedeemRBTC(_dllrAmount, rbtcAmount);
emit GetDocFromDllrAndRedeemRBTC(msg.sender, _dllrAmount, rbtcAmount);
}

/// Set MoC registered Vendor account to receive markup fees https://docs.moneyonchain.com/main-rbtc-contract/integration-with-moc-platform/vendors

Check warning on line 101 in contracts/integration/MoC/MocIntegration.sol

View workflow job for this annotation

GitHub Actions / build

Line length must be no more than 140 but current length is 151

Check warning on line 101 in contracts/integration/MoC/MocIntegration.sol

View workflow job for this annotation

GitHub Actions / build

Line length must be no more than 140 but current length is 151
Expand Down
2 changes: 1 addition & 1 deletion contracts/meta-asset-token/MetaAssetToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract MetaAssetToken is ERC20Permit, Ownable {
/**
* @dev Emitted when transfer Manager config is changed.
*/
event TransferWithPermit(address _from, address _to, uint256 _amount);
event TransferWithPermit(address indexed _from, address indexed _to, uint256 _amount);

// state

Expand Down

0 comments on commit 5c7f936

Please sign in to comment.