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.
64
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.skillshare/skills/1k-defi-module-integration/SKILL.mdUse this skill to preserve DeFi ownership and operation boundaries. Start from current code, server data, and the real runtime; do not treat the skill as a path catalog or an implementation snapshot.
Keep the full operation scope—account, network, provider, market/reserve, position, token/symbol, action, and request id—through setup, business transaction, status, and refresh. A seeded approval/allowance or cached position is a display/input hint, not proof of current chain state: reconcile chain allowance when an approval-sensitive dialog mounts. Preserve native versus wrapped assets and server-derived symbols instead of inferring them from a provider name.
Treat pending/history metadata as a contract. SpeedUp replacements inherit the metadata needed by pending guards; replacement linkage remains available for those guards, while Cancel replacements must not render as the original collateral/staking action after an indexer merge. Keep display filtering separate from operation locks and carry replacement identity through local/remote reconciliation.
For Earn/Borrow refreshes, distinguish cached, empty, loading, error, and settled states. Preserve a complete visible snapshot during refresh and make identity changes invalidate the old result. Close a selector/modal at the user action boundary, then load the new market/reserve asynchronously.
entry -> data/position -> action -> transaction -> status -> refresh.Locate the current owner in the live source before editing, then load only the reference that matches the failure class:
$1k-trade-swap-market for the remainder.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.
356c24e
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.