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

Proxy and trade #150

Merged
merged 37 commits into from
Oct 17, 2018
Merged

Proxy and trade #150

merged 37 commits into from
Oct 17, 2018

Conversation

cag
Copy link
Contributor

@cag cag commented Oct 15, 2018

Okay so everything still have to redeployed, but this is going to be the next version in the 1.x series.

@denisgranha
Copy link
Contributor

Okay so everything still have to redeployed, but this is going to be the next version in the 1.x series.

Nice! I will maintain the Event declaration so tradingdb doesn't break

@cag
Copy link
Contributor Author

cag commented Oct 17, 2018

@denisgranha All the EVM logs should be the same. There's just one new event:

event OutcomeTokenTrade(address indexed transactor, int[] outcomeTokenAmounts, int outcomeTokenNetCost, uint marketFees);

It's similar to

event OutcomeTokenPurchase(address indexed buyer, uint8 outcomeTokenIndex, uint outcomeTokenCount, uint outcomeTokenCost, uint marketFees);

except you can buy/sell multiple outcomes simultaneously (int[] outcomeTokenAmounts) and get either a cost or a profit (int outcomeTokenNetCost).

@cag cag merged commit 25046df into v1 Oct 17, 2018
@cag cag deleted the proxy-and-trade branch October 17, 2018 21:30
@cag cag added the invalid label Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants