New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

augur-ui-react-components

Package Overview
Dependencies
Maintainers
5
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

augur-ui-react-components - npm Package Compare versions

Comparing version 3.4.4 to 3.4.5

2

package.json
{
"name": "augur-ui-react-components",
"version": "3.4.4",
"version": "3.4.5",
"description": "Augur UI React Components",

@@ -5,0 +5,0 @@ "author": "Augur Project",

@@ -58,43 +58,52 @@ import React, { PropTypes } from 'react';

<h2>Technical updates:</h2>
<p>Oct 23, 2016 @ 2:38AM PST [<a href="mailto:jack@augur.net">Jack</a>]:</p>
<ol>
<ul>
<li>
Fixed P/L calculations for trades going from a net long to net short position, or vice-versa.
Oct 23, 2016 @ 2:38AM PST [<a href="mailto:jack@augur.net">Jack</a>]:
</li>
<li>
&quot;Close Out Position&quot; has been re-labeled &quot;Redeem X Complete Sets&quot;.
<ol>
<li>
Fixed P/L calculations for trades going from a net long to net short position, or vice-versa.
</li>
<li>
&quot;Close Out Position&quot; has been re-labeled &quot;Redeem X Complete Sets&quot;.
</li>
</ol>
</li>
</ol>
<br />
<p>Oct 22, 2016 @ 2:09AM PST [<a href="mailto:jack@augur.net">Jack</a>]:</p>
<ol>
<li>
&quot;Sell Complete Sets&quot; has been re-labeled to &quot;Close Out Position&quot; everywhere this concept is exposed to the user. This is intended to avoid confusion for users attempting to close out a short position (which requires them, somewhat unintuitively, to sell a complete set).
Oct 22, 2016 @ 2:09AM PST [<a href="mailto:jack@augur.net">Jack</a>]:
</li>
<li>
The label for the automatic sell complete sets checkbox on the Accounts page has been improved.
</li>
<li>
Buy and sell complete sets are now explicitly accounted for in the positions and P/L calculations. (Testers: feedback / suggestions on the sell complete sets stuff is especially valuable, as I am finding this to be a somewhat tricky UX problem!)
<ol>
<li>
Shares acquired via buy complete sets (i.e., new shares issued) are included in the positions total. However, since there is not a price for each outcome within the complete set, the shares from the complete set do <b>not</b> contribute to the mean price of open position. (Note: this only applies to complete sets bought manually by the user. Complete sets bought as part of short selling are not included in the positions total.)
&quot;Sell Complete Sets&quot; has been re-labeled to &quot;Close Out Position&quot; everywhere this concept is exposed to the user. This is intended to avoid confusion for users attempting to close out a short position (which requires them, somewhat unintuitively, to sell a complete set).
</li>
<li>
Complete sets sold to close out a <b>long</b> position are deducted from your total position. Since there is not a price for each outcome within the complete set, selling the complete set does <b>not</b> change realized P/L.
The label for the automatic sell complete sets checkbox on the Accounts page has been improved.
</li>
<li>
Motivating example: suppose you have short sold 2 shares of one outcome in a market. The UI displays your position as -2 in that outcome, and 0 in the other outcomes. To close out your short position, you buy 2 shares in the same outcome. The UI now shows your position as 0 in all outcomes. However, what has happened behind the scenes is, you were actually long the other outcomes (and 0 in the outcome you shorted), and when you bought back 2 shares, now you have 2 shares in all outcomes. Therefore, to actually close out your position, you have to sell 2 complete sets.
<br />
Complete sets sold to close out a <b>short</b> position work as follows. If you have a short position, shares bought back are added to your position, but they do not contribute to your realized P/L until you have actually sold the complete set(s) back. Shares that have been bought back but not yet closed out (via sell complete sets) are &quot;queued&quot;, and the system calculates a &quot;queued P/L&quot; for these shares. (Currently, queued P/L is simply added to unrealized P/L, but it may help clarify things for the user to show it explicitly in the positions display.) Also, note that if you have manually bought any complete sets, your complete sets sold are first netted with the complete sets bought; only the excess complete sets sold are used to close out queued shares.
Buy and sell complete sets are now explicitly accounted for in the positions and P/L calculations. (Testers: feedback / suggestions on the sell complete sets stuff is especially valuable, as I am finding this to be a somewhat tricky UX problem!)
<ol>
<li>
Shares acquired via buy complete sets (i.e., new shares issued) are included in the positions total. However, since there is not a price for each outcome within the complete set, the shares from the complete set do <b>not</b> contribute to the mean price of open position. (Note: this only applies to complete sets bought manually by the user. Complete sets bought as part of short selling are not included in the positions total.)
</li>
<li>
Complete sets sold to close out a <b>long</b> position are deducted from your total position. Since there is not a price for each outcome within the complete set, selling the complete set does <b>not</b> change realized P/L.
</li>
<li>
Motivating example: suppose you have short sold 2 shares of one outcome in a market. The UI displays your position as -2 in that outcome, and 0 in the other outcomes. To close out your short position, you buy 2 shares in the same outcome. The UI now shows your position as 0 in all outcomes. However, what has happened behind the scenes is, you were actually long the other outcomes (and 0 in the outcome you shorted), and when you bought back 2 shares, now you have 2 shares in all outcomes. Therefore, to actually close out your position, you have to sell 2 complete sets.
<br />
Complete sets sold to close out a <b>short</b> position work as follows. If you have a short position, shares bought back are added to your position, but they do not contribute to your realized P/L until you have actually sold the complete set(s) back. Shares that have been bought back but not yet closed out (via sell complete sets) are &quot;queued&quot;, and the system calculates a &quot;queued P/L&quot; for these shares. (Currently, queued P/L is simply added to unrealized P/L, but it may help clarify things for the user to show it explicitly in the positions display.) Also, note that if you have manually bought any complete sets, your complete sets sold are first netted with the complete sets bought; only the excess complete sets sold are used to close out queued shares.
</li>
</ol>
</li>
<li>
Open orders are now sorted in descending order, asks first.
</li>
<li>
Fixed a bug that was preventing the Portfolio page from loading.
</li>
</ol>
</li>
<li>
Open orders are now sorted in descending order, asks first.
</li>
<li>
Fixed a bug that was preventing the Portfolio page from loading.
</li>
</ol>
</ul>
{p.marketsLink &&

@@ -101,0 +110,0 @@ <Link className="lets-do-this-button" {...p.marketsLink} >{`Let's do this!`}</Link>

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc