Skip to content

Commit f0211a9

Browse files
committed
chore: replace isNewMarket flag
1 parent c2e72a6 commit f0211a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,8 +1736,8 @@ import llamalend from "@curvefi/llamalend-api";
17361736
### Leverage for Legacy `mintMarket` (Deprecated)
17371737

17381738
These methods apply only to the legacy `mintMarket`.
1739-
Use `mintMarket.isNewMarket` to check whether the market is new.
1740-
If `mintMarket.isNewMarket === false`, use the methods listed below.
1739+
Use `mintMarket.isDeleverageSupported` to check whether the market is new.
1740+
If `mintMarket.isDeleverageSupported === false`, use the methods listed below.
17411741
```ts
17421742
(async () => {
17431743

src/llamalend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class Llamalend implements ILlamalend {
315315

316316
const network = await this.provider.getNetwork();
317317
this.chainId = Number(network.chainId) === 133 || Number(network.chainId) === 31337 ? 1 : Number(network.chainId) as IChainId;
318-
console.log("CURVE-LENDING-JS IS CONNECTED TO NETWORK:", { name: network.name.toUpperCase(), chainId: Number(this.chainId) });
318+
console.log("CURVE-LLAMALEND-JS IS CONNECTED TO NETWORK:", { name: network.name.toUpperCase(), chainId: Number(this.chainId) });
319319

320320
if(this.chainId === 42161) {
321321
this.constantOptions = { gasLimit: 1125899906842624 } // https://arbiscan.io/chart/gaslimit

0 commit comments

Comments
 (0)