Coder Social home page Coder Social logo

Comments (4)

ninetian avatar ninetian commented on September 2, 2024 1

image 为什么我只更新两个汇率...纠结...

appsettings.json里定义币种就可以了

  "Rate": { //汇率 设置0将使用自动汇率
    "BNB": 0,
    "TRX": 0,
    "ETH": 0,
    "USDT": 0,
    "USDC": 0,
    "MATIC": 0,
  },

from tokenpay.

ninetian avatar ninetian commented on September 2, 2024 1

可能加错地方了,BUSD应该是是币安智能链吧,加到BSC那里面试试

    {
      "Enable": false,
      "ChainName": "币安智能链",
      "ChainNameEN": "BSC",
      "BaseCoin": "BNB",
      "Decimals": 18,
      "ScanHost": "https://www.bscscan.com",
      "ApiHost": "https://api.bscscan.com",
      "ApiKey": "", // 此处申请 https://bscscan.com/myapikey
      "ERC20Name": "BEP20",
      "ERC20": [
        {
          "Name": "USDT",
          "ContractAddress": "0x55d398326f99059ff775485246999027b3197955"
        },
        {
          "Name": "USDC",
          "ContractAddress": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"
        },
	{
		"Name": "BUSD", // 代币名称
		"ContractAddress": "0x4Fabb145d64652a948d72533023f6E7A623C7C53" //合约地址
	}
      ]
    },

它汇率调用的OKX的接口,如果还是一样提示 ,可能代表OKX没这个币种,或者使用的OKX接口不是最新版

from tokenpay.

yesuter avatar yesuter commented on September 2, 2024

image

为什么我只更新两个汇率...纠结...

from tokenpay.

ZhangYiQiu avatar ZhangYiQiu commented on September 2, 2024

汇率查询使用的是OKX的汇率,如果OKX没有该币种,获取汇率将会失败,你可以在配置文件中手动指定汇率

from tokenpay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.