fix: ensure scaling for different reserveAsset token decimals (#551) #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Storage Layout" | |
env: | |
FOUNDRY_PROFILE: "ci" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
- "develop" | |
jobs: | |
check_storage_layout: | |
name: Check storage layout | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
contract: | |
- contracts/swap/Broker.sol:Broker | |
- contracts/swap/BiPoolManager.sol:BiPoolManager | |
- contracts/swap/Reserve.sol:Reserve | |
- contracts/oracles/BreakerBox.sol:BreakerBox | |
- contracts/tokens/StableTokenV2.sol:StableTokenV2 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: "nightly" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v3" | |
with: | |
cache: "yarn" | |
node-version: "20" | |
- name: "Install the Node.js dependencies" | |
run: "yarn install --immutable" | |
- name: Check storage layout | |
uses: Rubilmax/[email protected] | |
with: | |
contract: ${{ matrix.contract }} |