This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"number": "123" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.7; | |
//import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; | |
import "http://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/VRFConsumerBase.sol"; | |
contract RandomNumberConsumer is VRFConsumerBase { | |
bytes32 internal keyHash; | |
uint256 internal fee; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.5.17; | |
interface IPancakeCallee { | |
function pancakeCall(address sender, uint amount0, uint amount1, bytes calldata data) external; | |
} | |
interface approv{ | |
function approve(address _spender, uint256 _value) external returns (bool); | |
} | |
interface erc20_token{ | |
function transfer(address _to, uint256 _value) external returns (bool); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#get_price1').click(function(){ | |
// tut pair address (bez adresov tokena) | |
var ms_pair=['0x1b96b92314c44b159149f7e0303511fb2fc4774f', | |
'0xc15fa3e22c912a276550f3e5fe3b0deb87b55acd', | |
'0xf35145e28e1dd67055221739d8554e0b5c7adcd5', | |
'0x6a5578b071c1a327413f8f65e211adced37e7712', | |
'0xf983c1d1655dc0e4374cf2711e1d6980fe6ea968', | |
'0x2c0508f662c17482c8814f356045982597a38612', | |
'0xe32b3227350fd69766f5a95c211710b9a786382c', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#get_price1').click(function(){ | |
var ms_pair=['0x1b96b92314c44b159149f7e0303511fb2fc4774f', | |
'0xc15fa3e22c912a276550f3e5fe3b0deb87b55acd','0xc5b0d73a7c0e4eaf66babf7ee16a2096447f7ad6', | |
'0x680dd100e4b394bda26a59dd5c119a391e747d18','0xff17ff314925dff772b71abdff2782bc913b3575', | |
'0x3ab77e40340ab084c3e23be8e5a6f7afed9d41dc','0xd1f12370b2ba1c79838337648f820a87edf5e1e6', | |
'0xa0718093baa3e7aae054eed71f303a4ebc1c076f','0xebaaa639a55ecbebac4d7d43a5a6d7c5c1216a09', | |
'0x19e7cbecdd23a16dfa5573df54d98f7caae03019','0x4db28767d1527ba545ca5bbda1c96a94ed6ff242', | |
'0xba51d1ab95756ca4eab8737ecd450cd8f05384cf','0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a', | |
'0x83b92d283cd279ff2e057bd86a95bdefffed6faa','0x4d0228ebeb39f6d2f29ba528e2d15fc9121ead56', | |
'0x20bcc3b8a0091ddac2d0bc30f68e6cbb97de59cd','0x70d8929d04b60af4fb9b58713ebcf18765ade422', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function execute(address _tokenBorrow, uint _amount, address _tokenPay, uint _amountToRepay, address[] memory _userData) internal { | |
//swap tokeni 1/3, 3,5, 5,7 | |
address token1=_userData[1]; //oxae | |
address token3=_userData[3]; //0x11 | |
address token5=_userData[5]; //0x2dd | |
address[] memory path1 = new address[](2); | |
path1[0] =token1; //weth |