Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bancor/contracts-solidity

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bancor/contracts-solidity - npm Package Compare versions

Comparing version 0.6.11 to 0.6.12

8

CHANGELOG.md

@@ -0,1 +1,9 @@

### 0.6.12 (2020-08-19)
LiquidityPoolV2Converter
* Allow the owner to update the external rate propagation time
PriceOracle
* Fixed `lastUpdateTime` to return the latest time between the oracles
### 0.6.11 (2020-08-18)

@@ -2,0 +10,0 @@ LiquidityPoolV2Converter

2

package.json
{
"name": "@bancor/contracts-solidity",
"version": "0.6.11",
"version": "0.6.12",
"description": "The solidity version of the Bancor smart contracts is composed of many different components that work together to create the Bancor Network deployment.",

@@ -5,0 +5,0 @@ "repository": {

@@ -120,3 +120,3 @@ const { expect } = require('chai');

it('verifies that lastUpdateTime returns the earliest timestamp', async () => {
it('verifies that lastUpdateTime returns the latest timestamp', async () => {
const now = await latest();

@@ -128,3 +128,3 @@ const timestampA = now;

expect(await oracle.lastUpdateTime.call()).to.be.bignumber.equal(BN.min(timestampA, timestampB));
expect(await oracle.lastUpdateTime.call()).to.be.bignumber.equal(BN.max(timestampA, timestampB));

@@ -134,3 +134,3 @@ timestampB = timestampA.sub(duration.days(1));

expect(await oracle.lastUpdateTime.call()).to.be.bignumber.equal(BN.min(timestampA, timestampB));
expect(await oracle.lastUpdateTime.call()).to.be.bignumber.equal(BN.max(timestampA, timestampB));
});

@@ -180,3 +180,3 @@

it('verifies that latestRateAndUpdateTime returns the rate and earliest timestamp in the correct order', async () => {
it('verifies that latestRateAndUpdateTime returns the rate and latest timestamp in the correct order', async () => {
const now = await latest();

@@ -192,3 +192,3 @@ const timestampA = now;

expect(rateAndStatus[1]).to.be.bignumber.equal(expectedRate.d);
expect(rateAndStatus[2]).to.be.bignumber.equal(BN.min(timestampA, timestampB));
expect(rateAndStatus[2]).to.be.bignumber.equal(BN.max(timestampA, timestampB));

@@ -207,3 +207,3 @@ const newRateA = new BN(4700000);

expect(rateAndStatus2[1]).to.be.bignumber.equal(expectedRate.n);
expect(rateAndStatus2[2]).to.be.bignumber.equal(BN.min(timestampA, timestampB));
expect(rateAndStatus2[2]).to.be.bignumber.equal(BN.max(timestampA, timestampB));
});

@@ -210,0 +210,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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