@hypurrquant/defi-cli 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/main.js +7 -4
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/skills/defi-cli/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -7964,7 +7964,7 @@ function handleSchema(params) {
|
|
|
7964
7964
|
from: { type: "string", required: true, description: "Input token symbol or address" },
|
|
7965
7965
|
to: { type: "string", required: true, description: "Output token symbol or address" },
|
|
7966
7966
|
amount: { type: "string", required: true, description: "Amount in wei" },
|
|
7967
|
-
provider: { type: "string", required: false, default: "kyber", description: "Aggregator: kyber, openocean, liquid" },
|
|
7967
|
+
provider: { type: "string", required: false, default: "kyber", description: "Aggregator: kyber, openocean, liquid, lifi, relay" },
|
|
7968
7968
|
slippage: { type: "string", required: false, default: "50", description: "Slippage in bps" }
|
|
7969
7969
|
},
|
|
7970
7970
|
cli: "defi --chain hyperevm swap --from USDC --to WHYPE --amount 1000000"
|
|
@@ -9822,11 +9822,12 @@ function registerYield(parent, getOpts, makeExecutor2) {
|
|
|
9822
9822
|
if (opts.targetChain) {
|
|
9823
9823
|
targetChainName = opts.targetChain.toLowerCase();
|
|
9824
9824
|
} else {
|
|
9825
|
-
|
|
9825
|
+
const quiet = getOpts().json;
|
|
9826
|
+
if (!quiet) process.stderr.write(`Scanning all chains for best ${asset} yield...
|
|
9826
9827
|
`);
|
|
9827
9828
|
const t0 = Date.now();
|
|
9828
9829
|
const allRates = await scanRatesForExecute(registry, asset);
|
|
9829
|
-
process.stderr.write(`Scan done in ${Date.now() - t0}ms \u2014 ${allRates.length} rates found
|
|
9830
|
+
if (!quiet) process.stderr.write(`Scan done in ${Date.now() - t0}ms \u2014 ${allRates.length} rates found
|
|
9830
9831
|
`);
|
|
9831
9832
|
if (allRates.length === 0) {
|
|
9832
9833
|
printOutput({ error: `No yield opportunities found for ${asset}` }, getOpts());
|
|
@@ -11750,7 +11751,9 @@ function buildBanner() {
|
|
|
11750
11751
|
try {
|
|
11751
11752
|
const reg = Registry.loadEmbedded();
|
|
11752
11753
|
chainCount = reg.chains.size;
|
|
11753
|
-
protocolCount = reg.protocols.
|
|
11754
|
+
protocolCount = reg.protocols.filter(
|
|
11755
|
+
(p) => p.verified !== false && p.is_active !== false
|
|
11756
|
+
).length;
|
|
11754
11757
|
} catch {
|
|
11755
11758
|
}
|
|
11756
11759
|
const stats = chainCount && protocolCount ? `${chainCount} chains \xB7 ${protocolCount} protocols \xB7 by HypurrQuant` : `by HypurrQuant`;
|