Skip to content

Commit 92a73e1

Browse files
committed
docs: repayTicks, repayPrices
1 parent ce07833 commit 92a73e1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ import crvusd from "@curvefi/stablecoin-api";
389389
await llamma.wallet.balances();
390390
// { stablecoin: '1500.0', collateral: '0.3' }
391391

392+
await llamma.repayTicks(1000);
393+
// [ 135, 139 ]
394+
await llamma.repayPrices(1000);
395+
// [ '772.453820291837448', '734.595897104762463' ]
392396
await llamma.repayHealth(1000); // FULL
393397
// 315.2178906180373138
394398
await llamma.repayHealth(1000, false); // NOT FULL

test/readme.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ const generalTest = async () => {
158158

159159
console.log(await llamma.wallet.balances());
160160

161+
console.log(await llamma.repayTicks(1000));
162+
console.log(await llamma.repayPrices(1000));
161163
console.log(await llamma.repayHealth(1000)); // FULL
162164
console.log(await llamma.repayHealth(1000, false)); // NOT FULL
163165

0 commit comments

Comments
 (0)