DocsZH
search
⌘Ctrlk
MENUchevron-down
DocsZH
  • 欢迎来到 Solv Protocol
    • Solv 协议介绍
    • 比特币生态现状
  • 质押抽象层 (SAL)
    • 比特币质押的挑战
    • 什么是 SAL?
    • SAL 生态阐述
    • SAL 技术架构
    • 通过 SAL 获得多重收益
  • SolvBTC: 适合所有人的比特币储备货币
    • 背景阐述
    • 核心储备资产和创新储备资产
    • SolvBTC 介绍
    • 储备证明系统
    • 跨链机制
    • SolvBTC 桥接指南
  • SolvBTC 的流动性质押代币
    • SolvBTC.LSTs 介绍
    • 价格预言机
    • 跨链机制
    • Yield 合约地址
  • 协议技术文档
    • 质押抽象层 (SAL)
    • 智能合约
      • 合约架构
      • 资产储存与展示
      • LST 预言机机制
      • 多链资产合约库
    • 协议接口服务
    • 代码库
  • 协议安全机制
    • Solv Guard
    • 智能合约治理
    • 协议安全审计
  • 协议合规条款
    • 用户使用条款arrow-up-right
    • 用户隐私条款arrow-up-right
    • Cookie 政策arrow-up-right
    • 免责声明arrow-up-right
gitbook由 GitBook 提供支持
block-quote在本页chevron-down
  1. 协议技术文档chevron-right
  2. 智能合约

合约架构

hashtag
Router合约功能

LogoSolvBTC/contracts/SolvBTCRouter.sol at main · solv-finance/SolvBTCGitHubchevron-right
SolvBTC和SolvBTC LST路由合约代码库

hashtag
存款

hashtag
提款请求

hashtag
撤销提款请求

hashtag
提款功能

Logosolv-contracts-v3/sft/abilities/contracts/multi-repayable/MultiRepayableDelegate.sol at main · solv-finance/solv-contracts-v3GitHubchevron-right
提款功能代码库

hashtag
WithDraw (索赔)

上一页智能合约chevron-left下一页资产储存与展示chevron-right

最后更新于1年前

  • Router合约功能
  • 提款功能
/**
 * Subscribe with payment currency (i.e. WBTC) and receive SolvBTC.
 * @param poolId: The pool ID corresponding to SolvBTC or SolvBTC LST.
 * @param currencyAmount: Amount of currency to be deposited.
 * @return shareValue: Amount of SolvBTC to be received after subscription.
 */
function createSubscription(bytes32 poolId, uint256 currencyAmount) external returns (uint256 shareValue);
/**
 * Redeem with SolvBTC and receive currency (i.e. WBTC).
 * @param poolId: The pool ID corresponding to SolvBTC or SolvBTC LST.
 * @param redeemAmount: Amount of SolvBTC to be withdrawn.
 * @return redemptionId: TokenId of the redemption SFT to be received after redemption.
 */
function createRedemption(bytes32 poolId, uint256 redeemAmount) external returns (uint256 redemptionId);
/**
 * Revoke redemption with target the tokenId of redemption SFT and receive SolvBTC 
 * with an equivalent amount of the value of the redemption SFT token.
 * @param poolId: The pool ID corresponding to SolvBTC or SolvBTC LST.
 * @param redemptionId: TokenId of the redemption SFT to be revoked.
 */
function cancelRedemption(bytes32 poolId, uint256 redemptionId) external;
function claimTo(address to_, uint256 tokenId_, address currency_, uint256 claimValue_) external