Skip to main content

reflect-yield

Reflect Protocol yield management for OpenClaw agents. Deposit USDC into Reflect USDC+ for auto-yield, check balances, and compound profits. Integrates with the AutoYield agent's compounding loop.

Datos de origen

Repositorio
Godzilaa/yield-agent
Última actividad en el origen
11 de mayo de 2026 a las 13:20
Idioma detectado de SKILL.md
inglés
Estrellas
0
Forks
0

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
reflect-yield
description
Reflect Protocol yield management for OpenClaw agents. Deposit USDC into Reflect USDC+ for auto-yield, check balances, and compound profits. Integrates with the AutoYield agent's compounding loop.
version
1.0.0
author
autoyield
readme
metadata
{"openclaw":{"triggers":["deposit usdc","withdraw usdc+","check yield","compound","usdc+","reflect","balance"],"requires":{"env":"[Truncated]"},"install":["[Truncated]","[Truncated]","[Truncated]"]}}
functions
{"reflect-deposit":{"description":"Deposit USDC into Reflect to mint USDC+ (auto-yield at ~5% APY)","parameters":["[Truncated]","[Truncated]"],"returns":{"type":"object","properties":"[Truncated]"},"execute":"const { Connection, Keypair, PublicKey } = require(\"@solana/web3.js\");\nconst { depositToUsdcPlus } = require(\"./scripts/deposit.js\");\n\nconst connection = new Connection(process.env.SOLANA_RPC_URL || \"https://api.mainnet-beta.solana.com\");\nconst wallet = Keypair.fromSecretKey(Buffer.from(Buffer.from(wallet_b58, \"base58\")));\nconst result = await depositToUsdcPlus(connection, wallet, amount);\nreturn result;\n"},"reflect-withdraw":{"description":"Withdraw USDC+ back to USDC","parameters":["[Truncated]","[Truncated]"],"returns":{"type":"object","properties":"[Truncated]"},"execute":"const { Connection, Keypair } = require(\"@solana/web3.js\");\nconst { withdrawFromUsdcPlus } = require(\"./scripts/deposit.js\");\n\nconst connection = new Connection(process.env.SOLANA_RPC_URL || \"https://api.mainnet-beta.solana.com\");\nconst wallet = Keypair.fromSecretKey(Buffer.from(Buffer.from(wallet_b58, \"base58\")));\nconst result = await withdrawFromUsdcPlus(connection, wallet, amount);\nreturn result;\n"},"reflect-balance":{"description":"Check Reflect USDC+ balance, yield stats, and APY","parameters":["[Truncated]"],"returns":{"type":"object","properties":"[Truncated]"},"execute":"const { Connection, PublicKey } = require(\"@solana/web3.js\");\nconst { getReflectBalances } = require(\"./scripts/balance.js\");\n\nconst connection = new Connection(process.env.SOLANA_RPC_URL || \"https://api.mainnet-beta.solana.com\");\nconst wallet = new PublicKey(wallet_pubkey);\nconst balances = await getReflectBalances(connection, wallet);\nbalances.message = `USDC: $${balances.usdc.toFixed(2)} | USDC+: $${balances.usdcPlus.toFixed(2)} | Total: $${balances.totalValue.toFixed(2)} | APY: ${balances.apy.toFixed(2)}%`;\nreturn balances;\n"},"reflect-compound":{"description":"Compound accumulated yield (auto-compounds — USDC+ accrues automatically)","parameters":["[Truncated]","[Truncated]"],"returns":{"type":"object","properties":"[Truncated]"},"execute":"const { Connection, Keypair } = require(\"@solana/web3.js\");\nconst { compoundYield } = require(\"./scripts/compound.js\");\n\nconst connection = new Connection(process.env.SOLANA_RPC_URL || \"https://api.mainnet-beta.solana.com\");\nconst wallet = Keypair.fromSecretKey(Buffer.from(Buffer.from(wallet_b58, \"base58\")));\nconst result = await compoundYield(connection, wallet, min_balance || 1);\nreturn result;\n"},"reflect-status":{"description":"Full Reflect yield status — balances, APY, daily yield","parameters":["[Truncated]"],"returns":{"type":"object","properties":"[Truncated]"},"execute":"const { Connection, PublicKey } = require(\"@solana/web3.js\");\nconst { getReflectBalances } = require(\"./scripts/balance.js\");\n\nconst connection = new Connection(process.env.SOLANA_RPC_URL || \"https://api.mainnet-beta.solana.com\");\nconst wallet = new PublicKey(wallet_pubkey);\nconst balances = await getReflectBalances(connection, wallet);\nreturn {\n message: `Portfolio: $${balances.totalValue.toFixed(2)} | APY: ${balances.apy.toFixed(2)}% | Daily: $${balances.dailyYield.toFixed(4)}`,\n ...balances,\n};\n"}}
Ver en GitHub