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
export function roundingNumber(input, maxDigis) { | |
const MAX_DIGIS = maxDigis == null || maxDigis == undefined ? 4 : maxDigis | |
const CustomBigNumber = BigNumber.clone({ | |
FORMAT: { | |
// the decimal separator | |
decimalSeparator: '.', | |
// the grouping separator of the integer part | |
groupSeparator: ',', | |
// the primary grouping size of the integer part |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDo7FD3YnsjgAJ6VXECZ99futUxdDZoUwvjauqe/Q1SRDGqhS1/+XFY6wP8idtE/tO55EMP+H2GVplJQrnnypciT5ksf+zTuA+Tm+v8hp6qOhQXzFswhBFXrjsla6kEMO5mqG3y5frqkZB1H7WNeY7eCCEnvnpAfCNi4bt3RkWi9mdLyB6XVbV9GIOoRaU3ipXLY0qoQH4BN33D4rqDalz6YVWvdOv/6kNv+d6IRyvcLKlashMKM4uI80reBSpLFZtaGcJXCOXPD7Z//KbfurHDRY6ReZ7tc2wwoyvbaTnLRmfZwu/eZpkr9p5NrDbzPPmzgBWA3+3nBNQQNO/4RfvkjL9viym/FUmfAVpVP354JAlwkG7Q0gwc4tblFeMrAI0WVCaBPR4nWP45nXverzxHxN0uFDRI8/RJbS8DuSyIjrXR8KDKgnX7OP3zpOnDYkmXL9/pDNgI5Crwr3T1hGI09Uh+wzOLOeLFieG3TjK8irR9eYoOg/RWCFmapaB1JGgj+T8DMb0HzmFTK/yfVyLncED8u6z3k+daUUVg3QQc21E/+41TKeVynr9iOzmHE8ToL3uhPHUH0WmAGmgbQl8WLRgL6CDXkkr7mutqcM/OeoOz4XQrPACtbdGG6NLi09IdcWLxuRnTeHQo+zzjyEh/IerI9yVUW3NIBcBJXJzeIw== [email protected] |
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
{ | |
"OMG": { | |
"token": { | |
"id": "OMG", | |
"name": "OmisexGO", | |
"decimals": 18, | |
"address": "0xd26114cd6EE289AccF82350c8d8487fedB8A0C07", | |
"internal": true, | |
"active": true | |
}, |
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
4. Tracker | |
- Thêm feature lấy config từ Core(get config lúc chạy server lần đầu, crawler chạy nếu gặp tx ko có trong config, fetch 1 lần, nếu ko có lần 2 -> raise error) | |
- fix bot /tokens gây crash | |
5. Reserve Dashboard | |
- Sửa config lấy từ Core | |
- Apply layout mới (30 pages) | |
+ /Dashboard overview | |
- token target popup | |
+ /rate |
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
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '14.4040414272', `volume_usd`= '2280.8017645947' WHERE `tx`= '0x00d983bb59c332c55b1a28b9e3e1f81a725b3acc2366d775f3d0beaeada17906'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '2.6658390000', `volume_usd`= '410.4998919899' WHERE `tx`= '0x057d86b6607a3402d9cbb7365a60fa87c05430bd388307d3446741d7f3b844ab'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.0010480647', `volume_usd`= '0.1593967382' WHERE `tx`= '0x0abf0c01a188da25fad747df9c1725246aa6ea113c2b465cf82fffd3631ea9f2'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.0305349167', `volume_usd`= '4.8615624248' WHERE `tx`= '0x0dd379bf273c1403949e7891c4b492f24f87e2d85a09b7062bff969247eacfc9'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '10.0413686628', `volume_usd`= '1578.2503234458' WHERE `tx`= '0x12563b82aa9634d5b759e22fecb779d6f2ce20e9d4628e7dd38459873405e9eb'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.0392147077', `volume_usd`= '6.0121118407' WHER |
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
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '6.7087737034', `volume_usd`= '1050.9373022237' WHERE `tx`= '0x1fc52813be25d8d59403acb1a0e4c6fbebe5b7d9589f147186fff43e7b79d0af'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.1884329368', `volume_usd`= '29.5617647685' WHERE `tx`= '0x220389bcaaf0160740472d26c56ffe42301c7be285ea9b2b3964a548fc018bd3'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '9.6024258760', `volume_usd`= '1504.0095813073' WHERE `tx`= '0x7c2f0df722a9fd8c32f6df551d561f7c9bea200c9e3da0693532367bd261c98e'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.1388121604', `volume_usd`= '21.6643302481' WHERE `tx`= '0x82604183a29fcb422e52265eab36323ce852ec0a82bba876afc04bc4c6a8f537'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.0577078128', `volume_usd`= '9.0220423664' WHERE `tx`= '0x8accdf2f83a9e34da1311b4d290cbc8092fecb6e2d434fd7e5566c042d17e646'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.8208420721', `volume_usd`= '129.4746894977' WHER |
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
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.0000925584', `volume_usd`= '0.0138207570' WHERE `tx`= '0x094dd549a6ac3c543a20e9dad9a484188b6871e20380988a0b69325be155fb89'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.6784946158', `volume_usd`= '104.2312252271' WHERE `tx`= '0x0c22513beb237f43c17a14610bd95297581fbbc525eead7575b65e206fbdea34'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.0000922927', `volume_usd`= '0.0137957344' WHERE `tx`= '0x0f367ff6ccdbded8bfad84bf24e119b59947909afe177ac566269ed96add3eb8'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '6.7237615449', `volume_usd`= '1019.7064063685' WHERE `tx`= '0x296df9f00fe1cf8abdd5e336964ada0c1d94009ddc0bd8688fb718fbb520c311'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.8081386679', `volume_usd`= '124.3529348264' WHERE `tx`= '0x325ec47a6d614e9401da565e7303d1126408a39a2aeb598437a2c476678a995b'; | |
UPDATE `kyber_tracker`.`kyber_trade` SET `volume_eth`= '0.4777247166', `volume_usd`= '73.0778207530' WHERE |
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
{ | |
"USDC": { | |
"exchanges": { | |
"binance": { | |
"MinDeposit": 0, | |
"Fee": { | |
"Deposit": 0, | |
"Withdraw": 3 | |
}, | |
"deposit_address": "0x1ae659f93ba2fc0a1f379545cf9335adb75fa547" |
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
const Web3 = require("web3"); | |
const wrapperABI = `[{"constant":true,"inputs":[{"name":"x","type":"bytes14"},{"name":"byteInd","type":"uint256"}],"name":"getInt8FromByte","outputs":[{"name":"","type":"int8"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"reserve","type":"address"},{"name":"tokens","type":"address[]"}],"name":"getBalances","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"ratesContract","type":"address"},{"name":"tokenList","type":"address[]"}],"name":"getTokenIndicies","outputs":[{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"reserve","type":"address"},{"name":"srcs","type":"address[]"},{"name":"dests","type":"address[]"}],"name":"getReserveRate","outputs":[{"name":"","type":"uint256[]"},{"name":"","type":"uint256[]"}],"payable":false,"stateMutab |
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
0xf1838fe4000000000000000000000000c14f34233071543e979f6a79aa272b0ab1b4947d00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000b6000000000000000000000000000000000000000000000000000000000000016400000000000000000000000000000000000000000000000000000000000000056000000000000000000000000b98d4c97425d9908e66e53a6fdf673acca0be9860000000000000000000000005ca9a71b1d01849c0a95490cc00559717fcf0d1d0000000000000000000000004ceda7906a5ed2179785cd3a40a69ee8bc99c4660000000000000000000000001a7a8bd9106f2b8d977e08582dc7d24c723ab0db00000000000000000000000027054b13b1b798b345b591a4d22e6562d47ea75a0000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef0000000000000000000000005732046a883704404f284ce41ffadd5b007fd668000000000000000000000000b8c77482e45f1f44de1745f52c74426c631bdd520000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c0000000000000000000000005af2be193a6abca9c8817001f45744777db3075600000000000000000000000041e5560054824ea6b0732e656e3ad6 |