Releases: compound-finance/compound-js
Compound.js v0.6.2
This version of Compound.js supports the newest deployments of Compound III on Base. This week, protocol governance officially initialized a cUSDbCv3 and a cWETHv3 Comet instance. See the documentation page for addresses and more information.
Compound.js v0.6.0
This release expands on the new Comet namespace in the Compound.js SDK. Separate objects can be declared for each instance of Comet. If the provider that the Comet instances uses does not point to the proper EVM network, errors will be thrown. Extra methods have been added for reviewing the supported instances of Compound III that can then be used to interact with those instances.
The Compound v2 REST API has been shut down. This release removes all functionality that uses that API from the SDK.
Compound.js v0.5.0
This release adds a new namespace to the SDK for Comet. Developers can now integrate Compound v2 and Compound III using Compound.js. There is now a separate documentation namespace for Compound.js that accompanies this release. Official method documentation can now be found at https://docs.compound.finance/compound-js/. The old docs URL will redirect to the new documentation website. In addition to the Comet namespace, this release also includes some minor refactoring of the internal modules for code cleanliness.
Compound.js v0.4.5
This release has a patch to update the price feed address for mainnet.
Compound.js v0.4.4
This patch adds support for the newest market added to the protocol: cFEI. It also updates the price feed contract to the current official Uniswap Anchored View.
Compound.js v0.4.3
This patch updates the cWBTC token address on mainnet to the new contract. The legacy contract has minting paused. Users of Compound.js versions prior to v0.4.3 will experience an error when trying to supply WBTC. Now that the SDK points to the new contract, this error does not occur. If you have supplied to the original cWBTC contract, you will need to redeem your cTokens another way or by using Compound.js v0.4.2 or lower.
Compound.js v0.4.2
USDP has been added to the mainnet configuration in version 0.4.2 as a result of Compound governance proposal 72.
Compound.js v0.4.1
This version has the latest Comptroller ABI that is part of proposal 65.
Compound.js v0.4.0
In this version, Ethers.js v5 is a peer dependency. Users of npm <7 will need to install Ethers version 5 as a peer dependency. In case they do not, they will see a warning in the command line log when installing the package. Additionally, only necessary files are shipped to npm in new releases. Thank you to @PaulRBerg for the contributions in this release.
Compound.js v0.3.1
This version adds the ability to pass Ethers.js provider / wallet / signer objects to the Compound.js read
and trx
methods. This makes it easier to impersonate accounts in the localhost dev environment for testing purposes.
// All of these providers are valid
var provider = window.ethereum;
var provider = 'http://localhost:8545';
var provider = 'https://mainnet.infura.io/v3/xxx....';
var provider = 'ropsten';
var provider = new Compound._ethers.providers.JsonRpcProvider('http://localhost:8545'); // newly supported
var provider = new Compound._ethers.Wallet('0xprivatekey...', ethersProviderObj); // newly supported
var provider = new Compound._ethers.providers.Web3Provider(window.ethereum); // newly supported
const srpb = await Compound.eth.read(
cEthAddress,
'function supplyRatePerBlock() returns (uint256)',
[]
{ provider }
);