Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0d16f1e
Refactoring to new structure. WIP.
miklt Jan 15, 2022
0197b07
WIP
miklt Jan 15, 2022
3b4d2b0
wip
miklt Jan 15, 2022
0288912
wip farm
miklt Jan 15, 2022
a4eae15
wip
miklt Jan 15, 2022
f54c385
Updating the config, removing file
miklt Jan 15, 2022
c44fd6c
working with the supply
miklt Jan 15, 2022
e1669f4
WIP, figuring out the TVL for the camTokens
miklt Jan 18, 2022
d9ecf99
WIP: checking camToken supply
miklt Jan 18, 2022
aa50a11
WIP: EmissionPerSecond issue
miklt Jan 18, 2022
82692a8
wip: refactoring camToken
miklt Jan 19, 2022
bb15195
wip: changing file names
miklt Jan 21, 2022
c2cf8ab
Removing state entity, calculating right aTvl.
miklt Jan 21, 2022
4e5f133
Merge pull request #1 from miklt/mai
miklt Jan 21, 2022
410e4b5
Removing 'value' variable, updating constants.
miklt Jan 23, 2022
1cc8515
Merge branch 'Opty-Fi:master' into master
miklt Jan 23, 2022
be11f30
Merge branch 'mai'
miklt Jan 23, 2022
b156de0
Merge branch 'Opty-Fi:master' into mai
miklt Jan 23, 2022
3414822
Merge pull request #3 from miklt/mai
miklt Jan 23, 2022
00451f4
Merge branch 'Opty-Fi:master' into master
miklt Jan 24, 2022
d7ac5d1
Merge branch 'Opty-Fi:master' into master
miklt Jan 31, 2022
cb245ed
Merge branch 'Opty-Fi:master' into master
miklt Mar 11, 2022
92ecc6d
Merge branch 'Opty-Fi:master' into master
miklt Mar 24, 2022
6aa0c49
WIP: Pangolin swap data.
miklt Mar 25, 2022
b5dd0af
WIP: adding staking info, removing swap config.
miklt Mar 25, 2022
d6114aa
Including farming events, abis.
miklt Mar 28, 2022
ef2be13
WIP: Rewards.
miklt Mar 31, 2022
7f5be22
Updating Farm rewards, including multipliers.
miklt Mar 31, 2022
f19ed75
handling amount in staking.
miklt Mar 31, 2022
23eccaf
Using contract data instead of amount in Staking.
miklt Mar 31, 2022
87ff57e
Merge branch 'master' into OE-12-pangolin-data-feeds-on-avalanche
uwe Apr 6, 2022
7c4213e
Merge branch 'Opty-Fi:master' into OE-12-pangolin-data-feeds-on-avala…
miklt Apr 6, 2022
c41bee4
fix: remove unnecessary .idea folder
miklt Apr 6, 2022
fd975a1
adding adding github build action for pangolin
miklt Apr 7, 2022
2d2e3ae
Rename MinichefV2.json to MiniChefV2.json
miklt Apr 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Megagraph CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]

branches: [master]

jobs:
build:
Expand All @@ -17,7 +16,7 @@ jobs:
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
path: "**/node_modules"
key: npm-v2-${{ hashFiles('**/yarn.lock') }}
restore-keys: npm-v2-
- name: Install
Expand Down Expand Up @@ -124,6 +123,11 @@ jobs:
env:
ADAPTER: Mai
CONFIG: polygon
- name: Build Pangolin (Avalanche)
run: yarn build:dev
env:
ADAPTER: Pangolin
CONFIG: avalanche
- name: Build QuickSwap (Polygon)
run: yarn build:dev
env:
Expand Down
222 changes: 222 additions & 0 deletions src/Pangolin/abis/ERC20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_spender",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "balance",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "owner",
"type": "address"
},
{
"indexed": true,
"name": "spender",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}
]
97 changes: 97 additions & 0 deletions src/Pangolin/abis/Factory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
[
{
"inputs": [{ "internalType": "address", "name": "_feeToSetter", "type": "address" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "token0", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "token1", "type": "address" },
{ "indexed": false, "internalType": "address", "name": "pair", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "", "type": "uint256" }
],
"name": "PairCreated",
"type": "event"
},
{
"constant": true,
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"name": "allPairs",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "allPairsLength",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "internalType": "address", "name": "tokenA", "type": "address" },
{ "internalType": "address", "name": "tokenB", "type": "address" }
],
"name": "createPair",
"outputs": [{ "internalType": "address", "name": "pair", "type": "address" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "feeTo",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "feeToSetter",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{ "internalType": "address", "name": "", "type": "address" },
{ "internalType": "address", "name": "", "type": "address" }
],
"name": "getPair",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "internalType": "address", "name": "_feeTo", "type": "address" }],
"name": "setFeeTo",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "internalType": "address", "name": "_feeToSetter", "type": "address" }],
"name": "setFeeToSetter",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading