問題タブ [bsc]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
solidity - Binance Smart Chain contract with withdraw and replenishment in both BUSD and USDT currencies
I have a task to make Solidity smart contract based on Binance Smart Chain network. That contract must withdraw and replenishment of funds with supporting both USDT and BUSD currences. But in contract must be one currency in circulation, without splitting on USDT or BUSD.
In other hand, Users must replenish the balance (or withdraw his funds) with both USDT and BUSD. But in contract must appear one universal balance (no matter how you replenish the balance) with a rate 1 (usdt or busd) to 1 (universal coin, that circulate in the contract).
Please, tell me how to realize that feature? Is it possible in principle?
Thanks in advance!