File tree Expand file tree Collapse file tree 8 files changed +62
-3
lines changed
Expand file tree Collapse file tree 8 files changed +62
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " pancakeswap-prediction-winner" ,
3- "version" : " 3.3 .0" ,
3+ "version" : " 4.0 .0" ,
44 "description" : " This bot wins almost every 5 minute BNB-USD option on PancakeSwap" ,
55 "author" : " Egor Gavrilov" ,
66 "license" : " MIT" ,
77 "scripts" : {
88 "start" : " ts-node ./src/index.ts" ,
99 "pcs" : " ts-node ./src/pancakeswap.ts" ,
10+ "doge" : " ts-node ./src/dogebets.ts" ,
1011 "cg" : " ts-node ./src/candlegenie-btc.ts" ,
1112 "cg-btc" : " ts-node ./src/candlegenie-btc.ts" ,
1213 "cg-bnb" : " ts-node ./src/candlegenie-bnb.ts" ,
Original file line number Diff line number Diff line change 1+ import dotenv from 'dotenv'
2+
3+ import { parseStrategy , PLATFORMS , startPolling } from './lib'
4+
5+ dotenv . config ( )
6+
7+ const strategy = parseStrategy ( process . argv )
8+
9+ startPolling (
10+ process . env . PRIVATE_KEY ,
11+ process . env . BET_AMOUNT ,
12+ strategy ,
13+ false ,
14+ PLATFORMS . DogeBets
15+ ) . catch ( ( error ) => {
16+ console . error ( error )
17+ } )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ interface Message {
55 data : {
66 platforms : {
77 [ PLATFORMS . PancakeSwap ] : boolean
8+ [ PLATFORMS . DogeBets ] : boolean
89 [ PLATFORMS . CandleGenieBTC ] : boolean
910 [ PLATFORMS . CandleGenieBNB ] : boolean
1011 [ PLATFORMS . CandleGenieETH ] : boolean
@@ -31,6 +32,17 @@ chrome.runtime.onMessage.addListener(async (message: Message) => {
3132 await sleep ( 3000 )
3233 }
3334
35+ if ( message . data . platforms [ PLATFORMS . DogeBets ] ) {
36+ startPolling (
37+ privateKey ,
38+ betAmount ,
39+ message . data . strategy ,
40+ true ,
41+ PLATFORMS . DogeBets
42+ ) . catch ( )
43+ await sleep ( 3000 )
44+ }
45+
3446 if ( message . data . platforms [ PLATFORMS . CandleGenieBTC ] ) {
3547 startPolling (
3648 privateKey ,
Original file line number Diff line number Diff line change 22 "manifest_version" : 3 ,
33 "name" : " PancakeSwap Prediction Winner" ,
44 "description" : " IMPORTANT! Open Extensions -> PancakeSwap Prediction Winner -> Developer Mode ON -> service worker. Otherwise the bot will sleep." ,
5- "version" : " 0.0.1.1 " ,
5+ "version" : " 0.0.2.0 " ,
66
77 "background" : {
88 "service_worker" : " background.js"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default function Info() {
55 return (
66 < >
77 < Heading fontSize = "lg" >
8- PancakeSwap & Candle Genie Prediction Winner 🚀
8+ PancakeSwap | DogeBets | Candle Genie Prediction Winner 🚀
99 </ Heading >
1010 < OrderedList >
1111 < ListItem >
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export default function Main() {
3232
3333 const [ platforms , setPlatforms ] = useState ( {
3434 [ PLATFORMS . PancakeSwap ] : true ,
35+ [ PLATFORMS . DogeBets ] : true ,
3536 [ PLATFORMS . CandleGenieBTC ] : true ,
3637 [ PLATFORMS . CandleGenieBNB ] : true ,
3738 [ PLATFORMS . CandleGenieETH ] : true
@@ -83,6 +84,22 @@ export default function Main() {
8384 >
8485 { PLATFORMS . PancakeSwap }
8586 </ Button >
87+ < Button
88+ size = "sm"
89+ colorScheme = "blue"
90+ variant = { platforms [ PLATFORMS . DogeBets ] ? 'solid' : 'outline' }
91+ leftIcon = {
92+ platforms [ PLATFORMS . DogeBets ] ? < CheckIcon /> : < CloseIcon />
93+ }
94+ onClick = { ( ) =>
95+ setPlatforms ( ( p ) => ( {
96+ ...p ,
97+ [ PLATFORMS . DogeBets ] : ! p [ PLATFORMS . DogeBets ]
98+ } ) )
99+ }
100+ >
101+ { PLATFORMS . DogeBets }
102+ </ Button >
86103 < Button
87104 size = "sm"
88105 colorScheme = "blue"
Original file line number Diff line number Diff line change @@ -17,6 +17,16 @@ async function main() {
1717
1818 await sleep ( 3000 )
1919
20+ startPolling (
21+ process . env . PRIVATE_KEY ,
22+ process . env . BET_AMOUNT ,
23+ strategy ,
24+ false ,
25+ PLATFORMS . DogeBets
26+ )
27+
28+ await sleep ( 3000 )
29+
2030 startPolling (
2131 process . env . PRIVATE_KEY ,
2232 process . env . BET_AMOUNT ,
Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ export enum STRATEGIES {
2525
2626export enum PLATFORMS {
2727 PancakeSwap = 'PancakeSwap' ,
28+ DogeBets = 'DogeBets' ,
2829 CandleGenieBTC = 'CG BTC' ,
2930 CandleGenieBNB = 'CG BNB' ,
3031 CandleGenieETH = 'CG ETH'
3132}
3233
3334export const CONTRACT_ADDRESSES = {
3435 [ PLATFORMS . PancakeSwap ] : '0x18B2A687610328590Bc8F2e5fEdDe3b582A49cdA' ,
36+ [ PLATFORMS . DogeBets ] : '0x7B43d384fD83c8317415abeeF234BaDec285562b' ,
3537 [ PLATFORMS . CandleGenieBTC ] : '0x995294CdBfBf7784060BD3Bec05CE38a5F94A0C5' ,
3638 [ PLATFORMS . CandleGenieBNB ] : '0x4d85b145344f15B4419B8afa1CbB2A9d00B17935' ,
3739 [ PLATFORMS . CandleGenieETH ] : '0x65669Dcd4813341ACACF51b261F560c92d40A632'
You can’t perform that action at this time.
0 commit comments