Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events should include the result #127

Open
zjb0807 opened this issue Aug 12, 2022 · 0 comments
Open

Events should include the result #127

zjb0807 opened this issue Aug 12, 2022 · 0 comments

Comments

@zjb0807
Copy link
Member

zjb0807 commented Aug 12, 2022

event StableAssetSwapped(
address indexed sender,
uint32 indexed poolId,
uint32 i,
uint32 j,
uint256 dx,
uint256 minDY,
uint32 assetLength
);
event StableAssetMinted(address indexed sender, uint32 indexed poolId, uint256[] amounts, uint256 minMintAmount);
event StableAssetRedeemed(address indexed sender, uint32 indexed poolId, uint256 redeemAmount, uint256[] amounts);
event StableAssetRedeemedSingle(
address indexed sender,
uint32 indexed poolId,
uint256 redeemAmount,
uint32 i,
uint256 minRedeemAmount,
uint32 assetLength
);
event StableAssetRedeemedMulti(
address indexed sender,
uint32 indexed poolId,
uint256[] amounts,
uint256 maxRedeemAmount
);

The current events are just the input parameter, the users don't care about this, it should emit the amount that occurred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant