Skip to content

Instantly share code, notes, and snippets.

@xiaok
Created November 29, 2021 13:30
Show Gist options
  • Save xiaok/12d6c48be59f76fe234149da571ba666 to your computer and use it in GitHub Desktop.
Save xiaok/12d6c48be59f76fe234149da571ba666 to your computer and use it in GitHub Desktop.

测试网接口文档

基本情况

  • Mainnet主网,chaiID=56
  • 合约地址
    • DBT 0x31c8b659E30f0CcC402CC875CF68A465c8052ba5
    • finance 0xddc59555e787898Ee293f504b80Ca3b940C44092
    • usdt 0x55d398326f99059ff775485246999027b3197955
  • BSC测试网,chainID=97
  • 合约地址
    • DBT 0x1dB697615E0Ea4Ad8Bd79DbCd0C1AD2EC8A02004
    • finance 0x4386a4Fd83be7302BDC9B032A85932D9DCB45b44
    • usdt 0x163F22a2A30bfDF4e5eE192E98a72e1E7f8c28Bb

finance合约

Read

  • getUsersNum
    • input: 无
    • output: (总人数)
  • getUserAddressByIndex
    • input: (索引)
    • output: (用户地址)
  • getUserTotalDepositNum
    • input: (用户地址)
    • output: (总次数)
  • getUserDepositRecordByIndex
    • input: (用户地址,索引(第N笔))
    • output: (充值时间,金额)
  • getUserStage
    • input: (用户地址)
    • output: (等级)
  • getTotalDeposit
    • input: (用户地址)
    • output: (用户累计充值)
  • getTotalUniLevelReward
    • input: (用户地址)
    • output: (用户累计UniLevel奖励)
  • getTotalProfit
    • input: (用户地址)
    • output: (用户累计总收益)
  • getTotalDirectRewards:
    • input: (用户地址)
    • output: (直推累计奖励)
  • getUserPrinciple
    • input: (用户地址)
    • output: (用户本金锁仓金额, 用户本金解锁金额)
  • getUserBaseProfit
    • input: (用户地址)
    • output: (用户基础收益,解锁倒计时)
  • getUserBaseProfit
    • input: (用户地址)
    • output: (用户额外收益(uni + 直推),解锁倒计时)
  • getWithdrawApplication
    • input: (用户地址)
    • output: (提现金额,倒计时)
  • getProfitWithdrawLimit
    • input: (用户地址)
    • output: (用户提现限值)

Write

  • swap
    • input: (推荐人, 金额)
    • output: 无
  • applyWithdraw
    • input: (是否提取本金)
    • output: 无
  • harvest
    • input: 无
    • output: 无
  • withdrawCurrencyByOwner
    • input: (金额)
    • output: 无
  • withdrawTokenByOwner
    • input: (金额)
    • outpuy: 无
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment