Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

@0x/contracts-integrations: Add ChaiBridge and DydxBridge gas b… #2478

Merged

Conversation

dorothy-zbornak
Copy link
Contributor

@dorothy-zbornak dorothy-zbornak commented Feb 11, 2020

Description

Introducing DydxBridge and ChaiBridge gas benchmarking tests.

Here's the results:

  • DydxBridge DAI->USDC with 1 deposit and 1 withdraw action: 375066
  • DydxBridge DAI->USDC with just 1 withdraw action: 315896
  • ChaiBridge WETH->DAI: 293453
  • ChaiBridge DAI->WETH: 292936

For reference:

  • Vanilla WETH->DAI: 124665

Testing instructions

These are fork tests. Figure it out.

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@dorothy-zbornak dorothy-zbornak force-pushed the feat/contracts/integrations/chai-bridge-benchmarks branch from 54a3dce to 2e9d69c Compare February 11, 2020 00:47
@dorothy-zbornak dorothy-zbornak marked this pull request as ready for review February 11, 2020 00:50
@coveralls
Copy link

coveralls commented Feb 11, 2020

Coverage Status

Coverage decreased (-0.3%) to 79.361% when pulling 0baec61 on feat/contracts/integrations/chai-bridge-benchmarks into e851cb1 on feat/contracts/dev-utils/dydx-validation.

@dorothy-zbornak dorothy-zbornak force-pushed the feat/contracts/integrations/chai-bridge-benchmarks branch from 2e9d69c to cb7939e Compare February 11, 2020 19:00
Copy link
Contributor

@moodlezoup moodlezoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. Can we add comments in the test files with the results? 🙏


import { contractAddresses } from '../mainnet_fork_utils';

const CHONKY_DAI_WALLET = '0x3a9F7C8cA36C42d7035E87C3304eE5cBd353a532';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@dorothy-zbornak dorothy-zbornak force-pushed the feat/contracts/dev-utils/dydx-validation branch from c322ee2 to 3ec8924 Compare February 19, 2020 21:02
merklejerk and others added 6 commits February 26, 2020 11:26
`@0x/contracts-dev-utils`: Add `D18` library for working with base-10, 18-digit decimals.
`@0x/contracts-dev-utils`: Use `D18` library instead of `LibFractions` in `LibDydxBalance`.
`@0x/dev-utils`: Fix all the weird dydx base unit madness.
@dorothy-zbornak dorothy-zbornak force-pushed the feat/contracts/integrations/chai-bridge-benchmarks branch from cb7939e to cdd0dd2 Compare February 26, 2020 17:17
@dorothy-zbornak dorothy-zbornak force-pushed the feat/contracts/integrations/chai-bridge-benchmarks branch from cdd0dd2 to 0baec61 Compare February 26, 2020 17:57
@dorothy-zbornak dorothy-zbornak changed the base branch from feat/contracts/dev-utils/dydx-validation to development February 26, 2020 19:16
@dorothy-zbornak dorothy-zbornak merged commit 4dd2fb6 into development Feb 26, 2020
@dorothy-zbornak dorothy-zbornak deleted the feat/contracts/integrations/chai-bridge-benchmarks branch February 26, 2020 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants