Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Change Token address getting error #7

Closed
mkroxm opened this issue Jun 19, 2021 · 0 comments
Closed

After Change Token address getting error #7

mkroxm opened this issue Jun 19, 2021 · 0 comments

Comments

@mkroxm
Copy link

mkroxm commented Jun 19, 2021

const BNB_MAINNET = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c';
const BUSD_MAINNET = '0x3710cd84e0e331c99c70a34b8c6c136c2cdf91c4';

const prices = {};
const flashswap = new web3.eth.Contract(FlashswapApi, FLASHSWAP_CONTRACT);

const pairs = [
{
name: 'BUSD/BNB pancake>panther',
tokenBorrow: BUSD_MAINNET,
amountTokenPay: 10,

Error msg
error Error: Returned error: execution reverted
at Object.ErrorResponse (C:\not\node_modules\web3-core-helpers\lib\errors.js:28:19)
at Object.callback (C:\not\node_modules\web3-core-requestmanager\lib\index.js:303:36)
at C:\not\node_modules\web3-providers-ws\lib\index.js:114:45
at Array.forEach ()
at WebsocketProvider._onMessage (C:\not\node_modules\web3-providers-ws\lib\index.js:102:69)
at W3CWebSocket._dispatchEvent [as dispatchEvent] (C:\not\node_modules\yaeti\lib\EventTarget.js:115:12)
at W3CWebSocket.onMessage (C:\not\node_modules\websocket\lib\W3CWebSocket.js:234:14)
at WebSocketConnection. (C:\not\node_modules\websocket\lib\W3CWebSocket.js:205:19)
at WebSocketConnection.emit (events.js:376:20)
at WebSocketConnection.processFrame (C:\not\node_modules\websocket\lib\WebSocketConnection.js:554:26)
at C:\not\node_modules\websocket\lib\WebSocketConnection.js:323:40
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
data: null

@mkroxm mkroxm closed this as completed Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant