Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

New version: 1router #39

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a4c808d
New version: 1router
k06a Aug 20, 2020
cc976fb
Fix bug with flags
k06a Aug 20, 2020
25f1aba
Fix CI
k06a Aug 20, 2020
9887230
Fix some bugs
k06a Aug 20, 2020
244ccee
Fix tests
k06a Aug 20, 2020
6eefe7b
Introduce OneRouterAudit and fix disabledDexes
k06a Aug 24, 2020
638d6ed
Add referral and gas burner
k06a Aug 24, 2020
bbaa735
Add Kyber reserves list
k06a Aug 24, 2020
20c4b9a
Fixes
k06a Aug 24, 2020
bf89d42
Name fix
k06a Aug 24, 2020
d1683f9
Refactoring
k06a Aug 26, 2020
3efa516
KyberMooniswapReserve
k06a Aug 26, 2020
5713d6e
Fixes
k06a Aug 27, 2020
238694d
Added ref
k06a Aug 27, 2020
de11481
Fixes
k06a Aug 31, 2020
2386c7e
Improve
k06a Aug 31, 2020
4537cff
Code deduplication
k06a Aug 31, 2020
368f658
Simplify
k06a Aug 31, 2020
8b9ba2d
Fix KyberMooniswapReserve
k06a Sep 2, 2020
591a0b4
Add Compound
k06a Sep 3, 2020
47ebf7c
fix issue
ducquangkstn Sep 7, 2020
b4dab62
add unit test and change revert msg
ducquangkstn Sep 8, 2020
a78931a
Merge pull request #41 from ducquangkstn/kyber-mooniswap-bridge-reserve
k06a Sep 8, 2020
2faee52
Adding Curve HBTC support
cryptoDevTrader Sep 10, 2020
665b68a
New Balancer Registry
k06a Sep 13, 2020
cb9ddcd
Fix Curve HBTC typo
k06a Sep 13, 2020
9f6c51d
Merge remote-tracking branch 'upstream/one-router' into one-router
cryptoDevTrader Sep 13, 2020
c2c5311
Add Curve 3pool
pengiundev Sep 13, 2020
e43de0d
Setting proper sourcesCount value
cryptoDevTrader Sep 15, 2020
5f4f641
Fixes
k06a Sep 16, 2020
e6a5226
Merge pull request #44 from divThis/one-router
k06a Oct 2, 2020
72aa069
Merge branch 'one-router' into one-router
k06a Oct 2, 2020
ec0a15d
Merge pull request #45 from pengiundev/one-router
k06a Oct 2, 2020
7b7e16f
remove redundant default values
ZumZoom Oct 3, 2020
a9d17ad
Fixes
k06a Oct 5, 2020
d15c444
Merge pull request #50 from CryptoManiacsZone/feature/optimize-algo
k06a Oct 5, 2020
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
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.yaml]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
78 changes: 39 additions & 39 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"extends" : [
"standard",
"plugin:promise/recommended"
"standard",
"plugin:promise/recommended"
],
"plugins": [
"promise"
"promise"
],
"env": {
"browser" : true,
"node" : true,
"mocha" : true,
"jest" : true
"browser" : true,
"node" : true,
"mocha" : true,
"jest" : true
},
"globals" : {
"artifacts": false,
"contract": false,
"assert": false,
"web3": false
"artifacts": false,
"contract": false,
"assert": false,
"web3": false
},
"rules": {

// Strict mode
"strict": [2, "global"],
// Strict mode
"strict": [2, "global"],

// Code style
"indent": [2, 4],
"quotes": [2, "single"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "always"],
"no-use-before-define": 0,
"no-unused-expressions": "off",
"eqeqeq": [2, "smart"],
"dot-notation": [2, {"allowKeywords": true, "allowPattern": ""}],
"no-redeclare": [2, {"builtinGlobals": true}],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"eol-last": 1,
"comma-spacing": [2, {"before": false, "after": true}],
"camelcase": [2, {"properties": "always"}],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"comma-dangle": [1, "always-multiline"],
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-debugger": 0,
"no-undef": 2,
"object-curly-spacing": [2, "always"],
"max-len": [2, 200, 2],
"generator-star-spacing": ["error", "before"],
"promise/avoid-new": 0,
"promise/always-return": 0
// Code style
"indent": [2, 4],
"quotes": [2, "single"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "always"],
"no-use-before-define": 0,
"no-unused-expressions": "off",
"eqeqeq": [2, "smart"],
"dot-notation": [2, {"allowKeywords": true, "allowPattern": ""}],
"no-redeclare": [2, {"builtinGlobals": true}],
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"eol-last": 1,
"comma-spacing": [2, {"before": false, "after": true}],
"camelcase": [2, {"properties": "always"}],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"comma-dangle": [1, "always-multiline"],
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-debugger": 0,
"no-undef": 2,
"object-curly-spacing": [2, "always"],
"max-len": [2, 200, 2],
"generator-star-spacing": ["error", "before"],
"promise/avoid-new": 0,
"promise/always-return": 0
}
}
}
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches: [ master ]
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: '12.x'

- run: npm install -g yarn

- id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- run: |
echo "repo_token: ${COVERALLS_SECRET}" > .coveralls.yml
env:
COVERALLS_SECRET: ${{ secrets.COVERALLS_SECRET }}

- run: yarn
- run: yarn lint
- run: (yarn ganache-cli -f "$ETH_NODE" -l 8000000000 -p 9545 &>/dev/null &) && while ! nc -z localhost 9545; do sleep 1; done && yarn test
env:
ETH_NODE: ${{ secrets.ETH_NODE }}
#- run: yarn coveralls
#- run: yarn codechecks
# env:
# CC_SECRET: ${{ secrets.CODECHECKS_SECRET }}
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules/
coverage/
node_modules
coverage
coverage.json
build/
.env
dist
build
Empty file removed .prettierignore
Empty file.
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

22 changes: 11 additions & 11 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module.exports = {
testrpcOptions: '--port 8555 ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"',
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000" ' +
' --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"',
copyPackages: ['openzeppelin-solidity'],
norpc: true,
skipFiles: ['Migrations.sol']
skipFiles: ['Migrations.sol', 'mocks']
}
9 changes: 9 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "solhint:recommended",
"rules": {
"no-empty-blocks": "off",
"not-rely-on-time": "off",
"compiler-version": ["error", "^0.6.0"],
"private-vars-leading-underscore": "error"
}
}
4 changes: 0 additions & 4 deletions .soliumignore

This file was deleted.

22 changes: 0 additions & 22 deletions .soliumrc.json

This file was deleted.

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion AaveRegistry.full.abi

This file was deleted.

1 change: 0 additions & 1 deletion AaveRegistry.full.bin

This file was deleted.

Loading