CtrlK
BlogDocsLog inGet started
Tessl Logo

1k-defi-module-integration

Navigate and implement OneKey App Earn, Borrow, Staking, and DeFi Portfolio flows. Use for protocol data, portfolio actions, transactions, pending/history, refresh, and Earn routes.

68

Quality

82%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Earn / DeFi

Use this skill as a map to the owning surface and service contract. Derive product behavior from current code, server data, and the real runtime.

Quick Start

  1. Reproduce the real entry and affected platform.
  2. Trace entry -> data/position -> action -> transaction -> status -> refresh.
  3. Find the first owner whose identity, capability, or transition is wrong.
  4. Reuse a nearby pattern only when its protocol and operation semantics match; then verify the changed path and a relevant sibling.

Find The Owner

TaskStart hereRead next
Earn home, list, recommendation, or detailEarn view/state and its service requestArchitecture, Code map
Borrow, staking, claim, withdraw, repay, or statusOperation owner and current service contractOperation flow
Portfolio position or actionPosition data, supported action, transaction builderPortfolio actions
Native route, modal, event, or account switchDiscovery host and runtime ownerArchitecture
External protocol websiteDiscovery/browser until an App-owned RPC beginsArchitecture
Funding handoff to SwapDeFi prefill before quote; Swap execution afterward$1k-trade-swap-market

Load Detail As Needed

  • Architecture explains surfaces, hosts, runtimes, and cross-module boundaries.
  • Code map gives stable directories and search anchors.
  • Operation flow covers operation identity, setup, transaction, status, and refresh.
  • Portfolio actions covers how visible positions, supported actions, and transaction building join.
  • Validation helps choose focused tests and runtime evidence for the changed layer.

Finish

State the owning surface/service and the identities that matter. Run nearby tests and repository-required checks, then prove the affected route reaches the intended terminal and refresh state. Report unavailable runtime or server proof.

Related skills: $1k-trade-swap-market, $1k-state-management, $1k-cross-platform, $1k-coding-patterns.

Repository
OneKeyHQ/app-monorepo
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.