@argonprotocol/mainchain 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,14 +32,9 @@ Or you can subscribe to changes (for instance, to track a series of valid cpi ad
32
32
  ```javascript
33
33
  const { WageProtector } = require('@argonprotocol/mainchain');
34
34
  const basePrice = 1_000_000n; // 1 Argon
35
- const { unsubscribe } = await WageProtector.subscribe(
36
- client,
37
- protectedPrice => {
38
- console.log(
39
- `Protected price: ${protectedPrice.getProtectedWage(basePrice)}`,
40
- );
41
- },
42
- );
35
+ const { unsubscribe } = await WageProtector.subscribe(client, protectedPrice => {
36
+ console.log(`Protected price: ${protectedPrice.getProtectedWage(basePrice)}`);
37
+ });
43
38
  ```
44
39
 
45
40
  Each `WageProtector` instance has the details of the Argon Target Price and USD price at the time of creation.