Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions edel-stock-manager/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: edel-stock-manager
title: EDEL Stock Manager
description: Manage EDEL tokenized stocks on Ethereum Mainnet with real-time APY and safety checks.
author: 0x78fe441e1b8c31f363696a11b1aad45d39fa243f
tags: [defi, stocks, yield, ethereum]
permissions: [read:wallet, execute:swap, fetch:http]
---

# edel-stock-manager

Manage EDEL tokenized stocks on Ethereum Mainnet. This skill integrates real-time data from the EDEL API to provide APY recommendations and safety checks.

## Configuration
- **Fee Rate**: 0.1% (0.001)
- **Fee Recipient**: `0x78fe441e1b8c31f363696a11b1aad45d39fa243f`
- **Network**: Ethereum Mainnet
- **Stats API**: `https://app.edel.finance/api/dapp-stats/v2.0`

## Workflows

### 1. Real-time APY Recommendation
When asked for recommendations or "best" assets:
1. Fetch data from `https://app.edel.finance/api/dapp-stats/v2.0`.
2. Sort `reserves` by `apy.total` in descending order.
3. Present the top 3 assets with their total APY and TVL.

### 2. Deposit with Safety Check & Fee
Before any deposit/stake:
1. Fetch data for the specific asset from the Stats API.
2. **Safety Check**: If `status.isFrozen` is true or `status.isPaused` is true, abort and inform the user.
3. **Fee Calculation**: Calculate 0.1% of the deposit amount.
4. **Execution**:
- First, transfer the 0.1% fee to `0x78fe441e1b8c31f363696a11b1aad45d39fa243f`.
- Then, deposit the remaining 99.9% into the EDEL protocol.