Commit Graph

357 Commits

Author SHA1 Message Date
Thrilok Kumar
c05d2b1ada snx code refactoring 2020-07-14 23:04:52 +05:30
Thrilok Kumar
18eedb8833 Minor changes in mapping contract 2020-07-14 22:55:45 +05:30
Lecky Lao
9ce77c1336 update getMappingAddr with virtual;
Update MockSynthetix to override getMappingAddr;
Update test case for adding and removing pool on mapping;
2020-07-15 00:53:21 +10:00
Lecky Lao
df61aebc58 WIP having InternalCompilerError;
formating synthetic.sol and staking.sol;
Adding MockInstaMapping;
update test;
2020-07-14 16:37:08 +10:00
Thrilok kumar
819fead058
Created staking mapping contract 2020-07-13 21:02:50 +05:30
Thrilok kumar
7f5e85df93
Update synthetix.sol 2020-07-13 21:01:59 +05:30
Thrilok kumar
d1265d1cb8
Merge pull request #9 from InstaDApp/COMP-Connector
Added Comp connector
2020-07-12 20:20:46 +05:30
Thrilok Kumar
83482abf97 Updated COMP connector 2020-07-12 17:39:54 +05:30
Lecky Lao
ce11ae6b87 removed constructor from synthetix connector;
overwriting getSynthetixStakingAddr in mock;
comment out everything in migration;
2020-07-12 03:42:59 +10:00
Lecky Lao
becd0135aa formating stores.sol;
fixing import for SafeERC20 and IERC20;
set up constructor for synthetix connector to set address for staking contract;
created MockSynthetix.sol for test;
added nomiclabs/buidler;
fixed test for SynthetixProtocol.js;
adding .gitatributes to highlight solidity on GitHub;
adding buidler artefacts and cache to git ignore;
adding buidler.config.js;
2020-07-12 02:04:48 +10:00
Thrilok kumar
d851c814f3
Merge pull request #8 from InstaDApp/uniswap-integration
Added Uniswap connector
2020-07-09 22:52:10 +05:30
Lecky Lao
cdb8bf01eb created Mocks and MockSynthetix;
adding constructor for MockSynthetix and passing mock for synthetix address;
2020-07-10 01:08:08 +10:00
Thrilok Kumar
ea52262f2f Merge branch 'synthetix-connector' of github.com:InstaDApp/dsa-connectors into synthetix-connector 2020-07-09 16:51:44 +05:30
Thrilok Kumar
3d4c23a998 Added claimReward function 2020-07-09 16:51:39 +05:30
Thrilok Kumar
96ed4f62dd Fixed typo 2020-07-08 22:44:51 +05:30
Lecky Lao
3bb6ab8a52 remove trailing spaces;
added mocks contract;
adding tests;
2020-07-08 23:55:25 +10:00
Thrilok Kumar
e9d74b2ba1 Fixed bug 2020-07-08 15:41:00 +05:30
Thrilok Kumar
acf0654525 Added setId in deposit function 2020-07-07 21:14:33 +05:30
Thrilok Kumar
54c7429106 Added comments 2020-07-07 20:40:27 +05:30
Thrilok Kumar
abeb50aedb made every public function as payable function 2020-07-07 20:37:31 +05:30
Thrilok Kumar
7f5c9b5071 Code refactoring 2020-07-07 20:35:19 +05:30
Lecky Lao
785a91b758 adding withdraw and getReward; 2020-07-08 00:43:14 +10:00
Lecky Lao
c22ffbf20d fixing interface to use external;
fixing address format and document params;
2020-07-07 23:41:52 +10:00
Lecky Lao
1fde0d19d5 adding comment for stakeToken 2020-07-07 23:12:25 +10:00
Lecky Lao
78be404a70 Adding synthetix staking rewards protocol; 2020-07-07 23:06:29 +10:00
Lecky Lao
3138fad284
Merge pull request #6 from InstaDApp/curvesbtc-connector
Curvesbtc connector
2020-07-07 21:44:47 +10:00
Lecky Lao
18a3afd61b removing import that not being used 2020-07-07 21:30:04 +10:00
Thrilok Kumar
220e394caf Done with COMP connector 2020-07-07 14:43:08 +05:30
Thrilok Kumar
48b7703c59 Minor changes 2020-07-06 16:22:56 +05:30
Thrilok Kumar
668d0457b1 Fixed stack too deep error 2020-07-06 16:18:22 +05:30
Thrilok Kumar
3d6d1e21e2 Fixed stack too deep error 2020-07-06 15:31:37 +05:30
Thrilok Kumar
489fc8b69a Fixed minor bugs 2020-07-06 15:29:35 +05:30
Thrilok Kumar
d089fdb8d0 Minor change 2020-07-04 22:12:56 +05:30
Lecky Lao
1c51ff67e6 change ERC20 to use Tokeninterface to save connector size; 2020-07-05 00:55:16 +10:00
Thrilok Kumar
3c8e35b676 Removed constructor from curvebtc connector 2020-07-04 18:51:15 +05:30
Thrilok Kumar
cbc7a2e782 Updated uniswap router address 2020-07-04 03:28:16 +05:30
Thrilok Kumar
4f4e38b3f7 Fixed deadline 2020-07-04 03:27:01 +05:30
Samyak Jain
51403c4775 fixed bug on sell 2020-07-04 01:53:12 +10:00
Samyak Jain
7c9faf98df minor change 2020-07-04 01:34:58 +10:00
Samyak Jain
ea7037e2dd name change uniswap connector 2020-07-04 01:05:48 +10:00
Lecky Lao
7f896a12de change connectorID method in stores to virtual view;
adding connectorID method in connector as override and set model, id in constructor;
modify migration to deploy and set model, id;
update ganache to unlock master;
fixing curveProtocol test to use master address and get dai from uniswap;
fixing curveSBTCProtocol test to use cast for the sell connector method;
2020-07-04 00:43:19 +10:00
Thrilok kumar
ac704ab15b Updated pool connector id 2020-07-03 01:42:49 +05:30
Thrilok Kumar
c639cdc6a9 Done with curve btc connector 2020-07-02 10:27:01 +05:30
Thrilok Kumar
66edeb2e19 Fixed safemath issue 2020-07-02 10:26:47 +05:30
Lecky Lao
962d31bce6 Merge branch 'master' into curvesbtc-connector 2020-07-01 21:09:53 +10:00
Thrilok Kumar
e0f5ca3111 Updated makerdao connector Id 2020-07-01 06:32:31 +05:30
Thrilok Kumar
f34a0240d6 Merge branch 'master' of github.com:InstaDApp/dsa-connectors 2020-07-01 06:09:09 +05:30
Thrilok Kumar
26f2de4025 Added Exit dai function 2020-07-01 06:08:54 +05:30
Samyak Jain
5eff9d5e02 updated pool connector 2020-07-01 02:45:12 +10:00
Lecky Lao
a24ee929fd added method withdraw and test; 2020-07-01 00:17:20 +10:00
Lecky Lao
0ff06b28f1 added deposit method and test; 2020-07-01 00:07:15 +10:00
Samyak Jain
085c58dabb maker connector payback debt issue 2020-06-30 23:53:51 +10:00
Lecky Lao
e5f418157f Updated math.sol to use SafeMath from OZ;
update migration to deploy CurveSBTCProtocol;
Added Curvesbtc.sol sell method and got it compiled;
2020-06-30 02:15:35 +10:00
Lecky Lao
bce54aba13 fix formating on connectors/curve.sol;
adding @openzeppelin/test-helpers, ganache-cli;
fixing test/CurveProtocol.js to pass;
added truffle network for tenderly proxy;
added .nvmrc to set to node v12 as ganache-cli requires;
2020-06-28 23:15:51 +10:00
Thrilok Kumar
076a836c03 Added vault transfer function 2020-06-21 01:26:42 +05:30
Thrilok Kumar
e87a70e4db Minor typo 2020-06-21 01:22:12 +05:30
Thrilok Kumar
a30934566d Merge branch 'master' of github.com:InstaDApp/dsa-connectors 2020-06-21 00:34:03 +05:30
Thrilok Kumar
aa384bc856 Updated Connector ID 2020-06-21 00:33:59 +05:30
Samyak Jain
47b096e7ef edited small thing on COMP contract. 2020-06-20 18:01:45 +10:00
Thrilok Kumar
1031c34937 Added claim COMP function 2020-06-20 02:54:36 +05:30
Thrilok Kumar
23df17066d Changed curve connector name 2020-06-19 18:48:32 +05:30
Thrilok Kumar
237d8d857e Fixed typo 2020-06-19 18:46:26 +05:30
Thrilok Kumar
eb7cb3d7d4 Fixed decimal error in curve connector 2020-06-19 17:18:57 +05:30
Thrilok Kumar
e9f6b3932e Done with aave connector 2020-06-01 04:16:24 +05:30
Thrilok Kumar
3e3bb2b090 Added mainnet address 2020-05-31 03:40:45 +05:30
Thrilok Kumar
9e43874373 Minor changes 2020-05-31 03:38:43 +05:30
Thrilok Kumar
e664e91a41 Minor fix 2020-05-29 02:22:37 +05:30
Thrilok Kumar
1e7ef19452 Lots of refactoring 2020-05-28 04:31:01 +05:30
Thrilok Kumar
8bfc8f6ec7 Major changes 2020-05-28 03:53:38 +05:30
Thrilok Kumar
4b90d3dbf1 Fixed bugs 2020-05-27 05:15:45 +05:30
Thrilok Kumar
e5eb533a31 Added uint(-1) for remove liquidity 2020-05-27 04:49:25 +05:30
Thrilok Kumar
af765feaaf Almost done with uniswap 2020-05-27 03:34:38 +05:30
Thrilok Kumar
42e38682ca Done with aave connector 2020-05-26 00:34:04 +05:30
Samyak Jain
4feda4a6cb withdraw token interface repeating fixed 2020-05-23 23:48:01 +10:00
Samyak Jain
eb62198a10 fixed typo 2020-05-23 22:09:25 +10:00
Samyak Jain
9a931a4036 removed unnecessary require statements 2020-05-23 22:08:22 +10:00
Samyak Jain
09a6932acc code restruturing 2020-05-23 22:08:06 +10:00
Samyak Jain
d9f86e3b68 removed unnecessary require statement 2020-05-23 20:52:48 +10:00
Samyak Jain
ff390f88fc (deposit) bug fix - removed msg.value == _amt 2020-05-23 20:50:59 +10:00
Thrilok Kumar
2786b1630e Done with uniswap v2 swapping functions 2020-05-23 04:20:05 +05:30
Thrilok Kumar
8ed8852a28 Done with uniswap v2 swapping functions 2020-05-23 04:17:47 +05:30
Thrilok Kumar
0fd86b7e6d Fixed payback issue 2020-05-23 03:23:25 +05:30
Thrilok Kumar
9ec4a5a0bb Fixed repay issue 2020-05-22 01:02:30 +05:30
Thrilok Kumar
96346543b9 done with aave connector 2020-05-21 02:51:58 +05:30
Thrilok Kumar
3c63d3369b Almost done with aave connector 2020-05-21 00:17:14 +05:30
Thrilok Kumar
7da98bfb6d Added safeErc20 lib 2020-05-18 22:52:14 +05:30
Thrilok kumar
2bb791491a
Merge pull request #4 from InstaDApp/dydx-connector
Dydx connector
2020-05-17 00:36:09 +05:30
Thrilok Kumar
db20640337 Minor changes 2020-05-17 00:33:41 +05:30
Thrilok Kumar
dc8c18e051 Added comments 2020-05-16 23:21:37 +05:30
Thrilok Kumar
2c9ae90b41 Removed TODO 2020-05-15 23:59:48 +05:30
Thrilok Kumar
84e1e8a02c Fixed bug 2020-05-15 21:22:24 +05:30
Thrilok kumar
13bb2a7c17
Merge pull request #3 from InstaDApp/1inch
1inch Connector
2020-05-11 06:49:38 +05:30
Thrilok Kumar
f8b1c04388 Added comments in 1inch 2020-05-11 05:48:40 +05:30
Thrilok Kumar
c5bcbeda88 Removed paybackBehalf() function 2020-05-11 04:24:39 +05:30
Thrilok Kumar
dac5a7b1f5 Added token taker address 2020-05-11 03:23:56 +05:30
Thrilok Kumar
cab6225016 fixed a bug 2020-05-11 03:23:23 +05:30
Thrilok Kumar
05eacbce94 Added 1inch swap function sig check 2020-05-10 01:58:08 +05:30
Thrilok Kumar
d0df9bb706 Updated curve connector name 2020-05-10 01:29:42 +05:30
Samyak Jain
aca6cad4d4 1inch connector method name edit 2020-05-09 17:26:03 +10:00
Thrilok Kumar
96c7da1659 Fixed allowance issue in curve connector 2020-05-09 09:35:25 +05:30
Thrilok Kumar
ea2b3edd3d Fixed a issue 2020-05-09 09:31:24 +05:30
Thrilok Kumar
72bbcfa8a3 Fixed stack too deep Error 2020-05-09 06:10:44 +05:30
Thrilok Kumar
466ce9b1e4 fixed .call bug 2020-05-09 02:41:56 +05:30
Thrilok Kumar
2c76a8ae27 Added events 2020-05-09 02:41:47 +05:30
Thrilok Kumar
5181cffa04 1inch refactored 2020-05-09 02:41:13 +05:30
Thrilok Kumar
8a8bbe9649 Added payable to curve connector 2020-05-09 01:19:09 +05:30
Samyak Jain
93cf4e81dc 1inch connector done 2020-05-08 20:36:46 +10:00
Samyak Jain
4cfc1e3cb7 1inch connector 2020-05-08 19:11:46 +10:00
Thrilok Kumar
c3078cafd5 code refactor 2020-05-08 08:26:43 +05:30
Thrilok kumar
ce45fdaa92
Merge pull request #1 from pengiundev/curve
Added Curve connector
2020-05-08 08:10:24 +05:30
Thrilok Kumar
74e9862e81 fixed stack too deep error 2020-05-08 07:51:05 +05:30
Thrilok Kumar
a80d0c1e4d Code refactor 2020-05-08 07:50:25 +05:30
Thrilok Kumar
aadf5f6db3 Added comments 2020-05-08 07:42:57 +05:30
Samyak Jain
be6fbb5897 curve name changed 2020-05-06 15:09:43 +10:00
Samyak Jain
783cccd011 setId in deposit as mintAmt 2020-05-06 15:06:15 +10:00
Samyak Jain
8721e7ec63 code restructure 2020-05-06 15:05:03 +10:00
Samyak Jain
0ed45f12d5 removed a require condition 2020-05-06 15:04:10 +10:00
Samyak Jain
fb026bb91e bug: changed approve address 2020-05-06 15:02:35 +10:00
Samyak Jain
9439b2f676 updated setId params 2020-05-06 14:56:33 +10:00
Thrilok Kumar
9fc53baf0d Fixed withdraw issue 2020-05-06 08:03:13 +05:30
Thrilok Kumar
05d705bece Fixed bugs 2020-05-06 07:05:34 +05:30
Thrilok Kumar
6adb05a159 Added setId in deposit and withdraw 2020-05-06 04:42:52 +05:30
Thrilok Kumar
aef8da7a1f Added max amt deposit condition 2020-05-06 04:41:16 +05:30
Samyak Jain
06bd10445b withdraw single token done 2020-05-05 22:30:53 +10:00
Samyak Jain
089a4d62c1 deposit multi token to single token 2020-05-05 18:29:17 +10:00
Samyak Jain
373fb858ad buyAmt calculation method changed 2020-05-05 17:47:07 +10:00
Thrilok Kumar
a7dcefaa59 Added require conditions for token address 2020-05-05 11:45:50 +05:30
Thrilok Kumar
6b4d2b5b42 Curve connector Refactoring 2020-05-05 11:35:36 +05:30
Thrilok Kumar
ef99202660 Checking changes 2020-05-05 11:16:26 +05:30
AA
893165ce78 fix tests 2020-05-05 07:10:51 +03:00
AA
b20e2728b6 initial Curve connector version 2020-05-05 04:54:10 +03:00
Thrilok Kumar
55116532e7 Added dydx connector 2020-05-04 08:01:56 +05:30
Thrilok Kumar
2d30bf9a31 changed contract name 2020-05-04 07:49:40 +05:30
Thrilok Kumar
0f92175d9d minor changes 2020-05-04 07:45:49 +05:30
Thrilok Kumar
ef2cc22ccd added comments 2020-05-04 07:39:44 +05:30
Thrilok Kumar
ded8a24145 Added kyber connector. 2020-05-04 07:24:26 +05:30
Thrilok Kumar
920ccb68d9 Added decimals() to TokenInterface 2020-05-04 06:20:18 +05:30
Thrilok Kumar
e1cfe964f2 Updated interfaces 2020-05-04 02:56:10 +05:30
Thrilok Kumar
d2c26192ca Refactored mock contract 2020-05-04 02:48:00 +05:30
Sowmay Jain
b7f16e6c86 renamed ERC20 contracts and updated readme 2020-05-03 19:35:32 +10:00
Sowmay Jain
6370eccfbd edits 2020-05-03 10:58:45 +10:00
Thrilok Kumar
f448507b97 refactored common import files 2020-05-03 05:57:07 +05:30
Thrilok Kumar
7348e2a276 added TokenInterface 2020-05-03 05:46:30 +05:30
Thrilok Kumar
7ac87add12 Refactor mock.sol 2020-05-02 22:55:27 +05:30
Thrilok Kumar
c69511c1ad Added static connectors 2020-05-02 20:03:46 +05:30
Thrilok Kumar
d9a2bf5671 updated math.sol 2020-05-02 20:03:39 +05:30
Sowmay Jain
52fbe1baad modified mock.sol and readme 2020-05-02 22:18:39 +10:00
Sowmay Jain
e7ee535d96 added mock connector and todo 2020-05-02 21:52:06 +10:00
Sowmay Jain
c3031849df Refactored files and code 2020-05-02 19:40:50 +10:00
Samyak Jain
3372df9f98 added common.sol 2020-05-02 12:39:17 +10:00
Thrilok Kumar
5e6a194195 Added oasis connector 2020-05-01 21:32:33 +05:30
Thrilok Kumar
8b9ed7f97f Added maker connector 2020-05-01 21:32:25 +05:30
Thrilok Kumar
00032d696d Added instaPool connector 2020-05-01 21:32:17 +05:30
Thrilok Kumar
6a318ca8df Added compound connector 2020-05-01 21:32:08 +05:30
Thrilok Kumar
6f8757155a Added basic connector 2020-05-01 21:31:59 +05:30
Thrilok Kumar
d31588b9b4 Added Auth Connector 2020-05-01 21:31:52 +05:30
Thrilok Kumar
bbd031b8c5 First Commit 2020-05-01 21:31:43 +05:30