Skip to content

Commit

Permalink
Update PayoutRedemption Event to include the indexSets array. version…
Browse files Browse the repository at this point in the history
… 0.2.1
  • Loading branch information
V1rtuousCycle committed Apr 18, 2019
1 parent 24d8eff commit 7f78873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/PredictionMarketSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract PredictionMarketSystem is OracleConsumer, ERC1155 {
event PositionSplit(address indexed stakeholder, IERC20 collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint[] partition, uint amount);
/// @dev Emitted when positions are successfully merged.
event PositionsMerge(address indexed stakeholder, IERC20 collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint[] partition, uint amount);
event PayoutRedemption(address indexed redeemer, IERC20 indexed collateralToken, bytes32 indexed parentCollectionId, uint payout);
event PayoutRedemption(address indexed redeemer, IERC20 indexed collateralToken, bytes32 indexed parentCollectionId, uint[] indexSets, uint payout);

/// Mapping key is an condition ID. Value represents numerators of the payout vector associated with the condition. This array is initialized with a length equal to the outcome slot count.
mapping(bytes32 => uint[]) public payoutNumerators;
Expand Down Expand Up @@ -169,7 +169,7 @@ contract PredictionMarketSystem is OracleConsumer, ERC1155 {
balances[uint(key)][msg.sender] = balances[uint(key)][msg.sender].add(totalPayout);
}
}
emit PayoutRedemption(msg.sender, collateralToken, parentCollectionId, totalPayout);
emit PayoutRedemption(msg.sender, collateralToken, parentCollectionId, indexSets, totalPayout);
}

/// @dev Gets the outcome slot count of a condition.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gnosis.pm/hg-contracts",
"version": "0.2.0",
"version": "0.2.1",
"description": "Collection of smart contracts for the Gnosis prediction market platform",
"scripts": {
"setup-githooks": "git config core.hooksPath .githooks",
Expand Down

0 comments on commit 7f78873

Please sign in to comment.