# Upshift

> Upshift Finance yield vaults. Deposit/withdraw from FXRP vault (earnXRP), check yields, monitor positions. Triggers on "/upshift", "upshift finance", "earnxrp", "fxrp vault", "yield vault".

- **Type:** Skill
- **Install:** `agentstack add skill-canddao1-dotcom-flare-agent-skills-upshift`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [canddao1-dotcom](https://agentstack.voostack.com/s/canddao1-dotcom)
- **Installs:** 0
- **Category:** [Security](https://agentstack.voostack.com/c/security)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [canddao1-dotcom](https://github.com/canddao1-dotcom)
- **Source:** https://github.com/canddao1-dotcom/flare-agent-skills/tree/main/skills/upshift

## Install

```sh
agentstack add skill-canddao1-dotcom-flare-agent-skills-upshift
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Upshift Skill

Interact with Upshift Finance yield vaults on Flare network.
- `/upshift`, "upshift vault", "earnXRP"

## Quick Command

```bash
node skills/upshift/scripts/upshift.js  [options]
```

## Subcommands

| Command | Description |
|---------|-------------|
| `status` | Vault TVL, share price, your balance |
| `deposit ` | Deposit FXRP to vault |
| `redeem ` | Instant redeem earnXRP for FXRP |
| `request ` | Request redemption (queued) |
| `balance [address]` | Check earnXRP balance |

## Usage Examples

```bash
# Check vault status
/upshift status

# Deposit 100 FXRP
/upshift deposit 100

# Redeem 50 earnXRP shares
/upshift redeem 50

# Check balance
/upshift balance
```

## Contract Addresses

| Contract | Address |
|----------|---------|
| Vault (Proxy) | `0x373D7d201C8134D4a2f7b5c63560da217e3dEA28` |
| Implementation | `0xc689cc6441146f7c4986ed4f0e1eb6fc382859b2` |
| Share Token (earnXRP) | `0xe533e447fd7720b2f8654da2b1953efa06b60bfa` |
| Asset (FXRP) | `0xAd552A648C74D49E10027AB8a618A3ad4901c5bE` |

## Interface (Non-standard)

**NOT ERC4626** - Custom interface:

```solidity
// Deposits - requires FXRP approval first
function deposit(address token, uint256 amount, address account)

// Redemptions
function instantRedeem(uint256 wNLPAmount, address to) returns (uint256)
function requestRedeem(uint256 _shares, address _token)
```

## Notes

- Share token is earnXRP (6 decimals)
- FXRP is 6 decimals
- Two-step redemption: instant or request/claim
- Vault uses TransparentUpgradeableProxy pattern

---

## Routing Guide

### Don't use when...
- Swapping FXRP (use `/swap`)
- Managing LP positions (use `/lp`)
- Checking portfolio (use `/portfolio` — includes Upshift)

### Use when...
- Depositing FXRP into Upshift yield vault
- Checking earnXRP balance and vault status
- Redeeming earnXRP back to FXRP

### Edge Cases
- NOT ERC4626 — custom interface, don't use standard vault ABIs
- Deposit fee ~0.3%
- Two redemption paths: instant (if available) or request queue
- Requires FXRP approval before deposit

### Success Criteria
- Status shows vault TVL and share price
- Deposit returns tx hash and earnXRP received
- Redeem returns FXRP amount and tx hash

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [canddao1-dotcom](https://github.com/canddao1-dotcom)
- **Source:** [canddao1-dotcom/flare-agent-skills](https://github.com/canddao1-dotcom/flare-agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-canddao1-dotcom-flare-agent-skills-upshift
- Seller: https://agentstack.voostack.com/s/canddao1-dotcom
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
