@bancor/contracts-solidity
Advanced tools
Comparing version 0.6.11 to 0.6.12
@@ -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 |
{ | ||
"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 not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2138962
9836