Skip to content

Events should include the result #127

@zjb0807

Description

@zjb0807

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions