Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions contracts/helper/RebalancingSetCTokenBidder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ contract RebalancingSetCTokenBidder is

event BidPlacedCToken(
address indexed rebalancingSetToken,
address indexed bidder
address indexed bidder,
uint256 quantity
);

/* ============ Constructor ============ */
Expand Down Expand Up @@ -162,7 +163,8 @@ contract RebalancingSetCTokenBidder is
// Log bid placed with Eth event
emit BidPlacedCToken(
address(_rebalancingSetToken),
msg.sender
msg.sender,
_quantity
);
}

Expand Down
6 changes: 4 additions & 2 deletions contracts/helper/RebalancingSetEthBidder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ contract RebalancingSetEthBidder is

event BidPlacedWithEth(
address indexed rebalancingSetToken,
address indexed bidder
address indexed bidder,
uint256 quantity
);

/* ============ Constructor ============ */
Expand Down Expand Up @@ -166,7 +167,8 @@ contract RebalancingSetEthBidder is
// Log bid placed with Eth event
emit BidPlacedWithEth(
address(_rebalancingSetToken),
msg.sender
msg.sender,
_quantity
);
}

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": "set-protocol-contracts",
"version": "1.3.20-beta",
"version": "1.3.21-beta",
"description": "Smart contracts for {Set} Protocol",
"main": "dist/artifacts/index.js",
"typings": "dist/typings/artifacts/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions test/contracts/helper/rebalancingSetCTokenBidder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ contract('RebalancingSetCTokenBidder', accounts => {
const expectedLogs = BidPlacedCToken(
rebalancingSetToken.address,
subjectCaller,
subjectQuantity,
rebalancingSetCTokenBidder.address
);

Expand Down Expand Up @@ -745,6 +746,7 @@ contract('RebalancingSetCTokenBidder', accounts => {
const expectedLogs = BidPlacedCToken(
rebalancingSetToken.address,
subjectCaller,
subjectQuantity,
rebalancingSetCTokenBidder.address
);

Expand Down
2 changes: 2 additions & 0 deletions test/contracts/helper/rebalancingSetEthBidder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ contract('RebalancingSetEthBidder', accounts => {
const expectedLogs = BidPlacedWithEth(
rebalancingSetToken.address,
subjectCaller,
subjectQuantity,
rebalancingSetEthBidder.address
);

Expand Down Expand Up @@ -552,6 +553,7 @@ contract('RebalancingSetEthBidder', accounts => {
const expectedLogs = BidPlacedWithEth(
rebalancingSetToken.address,
subjectCaller,
subjectQuantity,
rebalancingSetEthBidder.address
);

Expand Down
3 changes: 3 additions & 0 deletions utils/contract_logs/rebalancingSetCTokenBidder.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Address, Log } from 'set-protocol-utils';
import { BigNumber } from 'bignumber.js';

export function BidPlacedCToken(
rebalancingSetToken: Address,
bidder: Address,
quantity: BigNumber,
contractAddress: Address,
): Log[] {
return [{
Expand All @@ -11,6 +13,7 @@ export function BidPlacedCToken(
args: {
rebalancingSetToken,
bidder,
quantity,
},
}];
}
3 changes: 3 additions & 0 deletions utils/contract_logs/rebalancingSetEthBidder.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Address, Log } from 'set-protocol-utils';
import { BigNumber } from 'bignumber.js';

export function BidPlacedWithEth(
rebalancingSetToken: Address,
bidder: Address,
quantity: BigNumber,
contractAddress: Address,
): Log[] {
return [{
Expand All @@ -11,6 +13,7 @@ export function BidPlacedWithEth(
args: {
rebalancingSetToken,
bidder,
quantity,
},
}];
}