Jacob Evans
f698721484
feat: [asset-swapper] Add Crypto.com as a source ( #43 )
...
* feat: [asset-swapper] Add Crypto.com as a source
* Exclude in tests
* Disable hop sources to avoid excess inaccuracy
* Added CryptoCom Bridge and FQT rollup
* update test
* Deploy CryptoCom bridge
* Update package.json
* CHANGELOGs
2020-12-01 12:52:48 +10:00
Jacob Evans
717db99b38
fix: Support Multiple Shells ( #17 )
...
* fix: Support Multiple Shells
* CHANGEGLOG
2020-10-29 17:09:23 +10:00
Jacob Evans
99f5be8378
chore: [asset swapper] sampler Solidity 0.6 + Bridge addresses in AS ( #4 )
...
* Refactor excess interfaces
* Compiles on 0.6
* Refactored into try/catch
* Rebase and Refactored to v06
* Handle invalid registry in LP
* Update packages/asset-swapper/contracts/src/LiquidityProviderSampler.sol
Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
* chore: [asset-swapper] Move Bridge Addresses and Gas schedule
* curve->pool
* lint
* Refactor to fix module load order
* Move FEE Schedule
* rollup: Swerve/Sushi/SnowSwap/DODO (#7 )
* rollup: Swerve/Sushi
* DODO Rollup + Snowswap Swerve
* hardcode addresses temporarily
* rebase
* rename to SUSHISWAP_ROUTER
* CHANGELOGs
* CHANGELOGs
Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
2020-10-27 15:16:09 +10:00
Lawrence Forman
0ce6243653
update @0x/tools
deps
...
skip kyber bridge tests
ignore some contract packages in tests by default
update package deps
update README, CI, and GH configs
2020-10-20 20:53:39 -04:00
Alex Kroeger
eb27e260e0
merged into development to grab dodo
2020-10-13 23:23:05 -07:00
Jacob Evans
4d04b72674
feat: DODO ( #2701 )
...
* feat: DODO
* DODO Bridge
* export DODOFillData
* Use deployed DODOHelper
* Deployed Bridge. Half of buys supported
* other half of buys
* refactor
* CHANGELOGs
* Lint
2020-10-13 18:20:31 +10:00
Alex Kroeger
c6b9ea5723
Merge branch 'development' into feat/add-cream
2020-10-11 20:11:24 -07:00
Jacob Evans
7698f21517
feat: [asset-swapper] Shell 🐚 ( #2722 )
...
* feat: [asset-swapper] Shell
* Deployed and Changelogs
* Glue up the deployed address
* Glue for FQT rollup
2020-10-06 15:55:51 +10:00
Alex Kroeger
00f55be83e
Added cream bridge contract
2020-09-29 12:59:54 -07:00
Jacob Evans
630108ccb6
feat: Swerve Finance and SushiSwap ( #2698 )
...
* feat: Swerve Finance
* export SwerveFillData
* test and CHANGELOG
* feat: Sushiswap (#2700 )
* feat: SushiSwap
* Changelog
* fix tests
* Deployed SushiSwap bridge
* Fix test
* IGNORED_EXCESSIVE_TYPES
2020-09-09 21:35:24 +10:00
Jacob Evans
a2f0d5eedf
feat: better Kyber quotes ( #2683 )
...
* feat: Kyber rework
* Get additional reserves per token
2020-08-27 15:58:57 +10:00
Jacob Evans
4f78f55c2a
fix: mooniswap usdt ( #2681 )
2020-08-25 21:43:19 +10:00
Jacob Evans
cc31445189
feat: asset-swapper mooniswap ( #2675 )
...
* feat: asset-swapper sampler early exit
* feat: asset-swapper mooniswap
* tests and linter
* deploy to mainnet
* CHANGELOGs
* fix excluded sources difference
* typo
2020-08-24 11:21:01 +10:00
Xianny
af78238507
Feat/bancor v2 ( #2650 )
...
* Bancor Bridge contract
* refactor Quote and FillData types
* BancorService (wrapper for the Bancor SDK)
* disable bancor while waiting for bancor SDK update
* add bancor to test
2020-08-21 15:11:35 -07:00
Jacob Evans
7e8b56eef4
feat: mStable + FQT Rollup ( #2662 )
...
* feat: mStable
* deploy and CHANGELOG
* `@0x/contracts-utils`: Add more testnet addresses.
* `@0x/contract-addresses`: Deply Mstable on testnets
* `@0x/contract-addresses`: Remove testnet deployments of mStable :-)
* move `erc20-bridge-sampler` into `asset-swapper`
remove `DevUtils` dependency from sampler contract.
* `@0x/asset-swapper`: Add ERC20BridgeSampler support for validating orders in maker fees denominated in non-maker assets.
`@0x/asset-swapper`: Add tests for `NativeOrderSampler`.
* `@0x/asset-swapper`: Return `0` sample if native order asset data is unsupported.
* `@0x/asset-swapper`: Fix failing test.
* feat: ExchangeProxy FQT fruit rollup (#2645 )
* feat: Optimize Bridges in ExchangeProxy
* compile and most work
* work around to trust the delecall contract
* force allowances
* Update Kyber/Eth2Dai bridges
* Remove memory state where not required
* cleanup
* Combine Bridges into one adapter
* mixins
* refactor out ZeroExBridge
* move out interface
* comment out hacks
* update migrations
* remove simbot hacks
* AdapterAddresses and mStable
* Share constructor arg
* fix migration
* Remove whitespace
* `@0x/contracts-zero-ex`: BridgeAdapter -- revert if bridge address is 0.
* `@0x/contract-addresses`: Deploy FQT.
Co-authored-by: Lawrence Forman <me@merklejerk.com>
Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
* update ganache contract addresses
* fix: asset-swapper empty batch call (#2669 )
* update ganache contract addresses
* fix: asset-swapper prevent empty sampler batch call
* add sampler to migrations
* change migrations version
* Use contract-wrappers and artifacts
* remove extra data
* remove deps, set sampler to NULL_ADDRESS
* all the exports
* noop sell rate too
* update ganache contract addresses
Co-authored-by: Lawrence Forman <me@merklejerk.com>
Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
2020-08-20 08:18:44 +10:00
Lawrence Forman
4dac620156
@0x/contracts-asset-proxy
: Update CurveBridge
to support more varied curves.
...
`@0x/contracts-erc20-bridge-sampler`: Refactor.
`@0x/contracts-erc20-bridge-sampler`: Add support for more varied curves.
`@0x/contracts-integrations`: Update curve bridge tests.
2020-07-23 00:36:32 -04:00
mzhu25
ff9c9241d8
BalancerBridge ( #2613 )
...
* Add BalancerBridge and Sampler functions
* Update sampler artifacts/wrappers
* Add Balancer support to AssetSwapper + related refactoring
* Make use of GraphQL instead of sampler
* "fix" build and add mainnet BalancerBridge tests
* address some comments
* add balancer cache and fix DexSampler tests
* lint
* wip: tests for balancer sampler ops
* Fix market operation utils test
* balancer unit tests
* Return a buy quote of 0 if the buy amount exceeds the Balancer pool's balance
* Dynamic fee estimation
* Update contract addresses, export BalancerBridge wrapper
* Update changelogs
* Fix bugs discovered via simbot
* Fix issues in balancer_utils
* override `BigNumber.config` in configured_bignumber.ts
* Special case Balancer subops in too
* Address some more comments
* Address Balancer performance issue
* Performance improvements
* Address comment
* Fix tests
Co-authored-by: xianny <xianny@gmail.com>
2020-07-14 19:18:50 -07:00
Lawrence Forman
845a42e73a
@0x/asset-proxy
: Fix DFB instability
2020-07-07 01:06:46 -04:00
Xianny
7127f541c3
UniswapV2Bridge ( #2590 )
...
* implement UniswapV2 Bridge
* More tests for UniswapV2Bridge
* cleanup and remove ERC20BridgeSampler changes
* enable multihop; address review comments
* solidity 0.6.9 doesnt allow devdoc for public storage vars
* codestyle improvements
2020-06-05 11:56:52 -07:00
Jacob Evans
a458e81f8d
ERC20BridgeSampler: Additional Buy support ( #2551 )
...
* ERC20BridgeSampler: Sample Curve Buy
* Fake Buy Kyber/PLP
* Deploy mainnet
* Add Kyber rates for buy tests
* CHANGELOGs
* Provide maxIterations and targetSlippage as options
* Cleanup ERC20BridgeSampler for re-use
* Redeploy Mainnet Kovan
* Feedback fixes
* Handle OOG/revert 0s
* Redeploy Mainnet refactor
2020-04-21 13:26:12 +10:00
Jacob Evans
cdbcada49b
Authorize sender adddress
2020-04-07 12:35:18 -04:00
Jacob Evans
282930cb9b
Add GST support to DFB
2020-04-07 12:35:18 -04:00
Lawrence Forman
0ccbc7d3d2
@0x/contracts-asset-proxy
: Fix typos and remove BridgeTransferFromCallFailed
event from DexForwarderBridge
.
2020-03-27 16:39:57 -04:00
Lawrence Forman
338c358df2
@0x/contracts-asset-proxy
: Address review comments.
2020-03-27 16:39:57 -04:00
Lawrence Forman
4bdaa48303
@0x/contracts-asset-proxy
: Create DexForwarderBridge
bridge contract.
2020-03-27 16:39:57 -04:00
Jacob Evans
568e9be07e
Gas Tokens in Bridges ( #2523 )
...
* Gas Tokens in Bridges
* Added freesGasTokensFromCollector.
To handle the case where GST2 is being traded and the balanceOf checks become confusing
* Update CHANGELOGs
2020-03-26 11:58:28 +10:00
Lawrence Forman
ce96e35d7d
@0x/contracts-asset-proxy
: Rename ERC20BridgeTransfer
event args to be less ambiguous.
2020-03-13 21:00:35 -04:00
Lawrence Forman
2d7cb63c7b
@0x/contracts-asset-proxy
: Address review comments.
2020-03-05 18:21:38 -05:00
Lawrence Forman
c3d4c13936
@0x/contracts-erc20
: Switch LibERC20Token.approveIfBelowMax()
to LibERC20Token.approveIfBelow()
.
...
`@0x/contracts-asset-proxy`: Use `LibERC20Token.approveIfBelow()` for bridge approvals.
2020-03-05 18:21:38 -05:00
Lawrence Forman
3f51b9322f
@0x/contracts-asset-proxy
: Emit ERC20BridgeTransfer
events in bridges.
2020-03-05 18:21:38 -05:00
Lawrence Forman
b604e2bd4e
@0x/contracts-erc20
: Add LibERC20Token.approveIfBelowMax()
.
...
`@0x/contracts-asset-proxy`: Use `LibERC20Token.approveIfBelowMax` in all DEX bridges.
2020-03-05 18:21:38 -05:00
mzhu25
9a7c4b21a9
@0x/contracts-erc20-bridge-sampler
: Generic liquidity provider sampling (#2487 )
...
* Add methods to Sampler contract to plug into generic on-chain liquidity provider
2020-02-26 11:54:48 -08:00
Lawrence Forman
58f772c74e
foo
2020-02-19 15:51:05 -05:00
Lawrence Forman
809885afd0
@0x/contracts-asset-proxy
: Add getMarketMarginPremium()
to IDydx
.
...
`@0x/contracts-dev-utils`: Handle dydx market premiums.
2020-02-19 15:49:41 -05:00
Lawrence Forman
bf9b4b993f
@0x/contracts-test-utils
: Fix blockchainTests
fork config to work with other tests.
2020-02-19 15:49:41 -05:00
Lawrence Forman
651e94bd94
@0x/asset-proxy
: Add more functions to IDydx
.
...
`@0x/dev-utils`: Fix all the weird dydx base unit madness.
2020-02-19 15:45:27 -05:00
Lawrence Forman
9b3781abf1
Cherry pick dydx validation from #2456
2020-02-19 15:45:27 -05:00
Jacob Evans
e05a03a842
Curve ERC20Bridge ( #2480 )
...
* Curve ERC20Bridge
* ERC20BridgeSampler Curve (#2483 )
* ERC20Sampler Curve
* Use Bridge Sources for each Curve
* Support multiple versions of the Curve contract
* CHANGELOG and redeployed Curve (mainnet)
* Fix Market ops utils test
* Added Curve DAI USDC USDT TUSD
* Bump sampler gas limit default
* Decode the Curve in tests
* Disable Curve in Buy tests
* blockchainTests.fork.resets Curve and Sampler
2020-02-15 17:02:19 +11:00
Amir
14ade737da
Fix linting errors
2020-01-17 10:47:17 -08:00
Amir
5dd3b8cf9d
Special case unlimited allowance for Chai
2020-01-17 09:59:03 -08:00
Amir
9a97401606
Add ChaiBridge allowance checks
2020-01-17 09:59:03 -08:00
Amir
410a3fef18
Add ChaiBridge balance checks to DevUtils
2020-01-17 09:59:03 -08:00
Lawrence Forman
9b7277d464
Fix Kyber and Uniswap ERC20Bridges ( #2412 )
...
* `@0x/contracts-asset-proxy`: Fix `UniswapBridge` token -> token transfer logic.
`@0x/contract-addresses`: Update `UniswapBridge` mainnet address.
* `@0x/asset-proxy`: Fix `KyberBridge` incorrect `minConversionRate` calculation.
* `@0x/contract-addresses`: Update `KyberBridge` mainnet address.
2019-12-20 13:41:52 -05:00
Greg Hysen
4415e00b38
Added more integration tests for DydxBridge with the Exchange (demonstrates use cases)
2019-12-19 21:32:03 -08:00
Greg Hysen
358d4d86a7
Added ERC20BridgeProxy.transferFrom
tests for DydxBridge
2019-12-19 21:31:07 -08:00
Greg Hysen
410c95308a
Updated dydx account encoding to assume that all actions are on partial balances
2019-12-13 12:02:23 -08:00
Greg Hysen
34596b7f83
Use safeGetPartialAmountFloor
2019-12-13 10:58:22 -08:00
Greg Hysen
5ca7169ee5
Reverted to version of dydx bridge that only allows from
to be the account owner
2019-12-13 10:58:22 -08:00
Greg Hysen
3300aaa1b9
Refactored so that deposits are done from taker asset data and withdrawals from maker asset data.
2019-12-13 10:58:22 -08:00
Greg Hysen
54afc8a4a1
Fixed merge conflicts
2019-12-13 10:58:22 -08:00