Skip to content
Open
Show file tree
Hide file tree
Changes from 140 commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
11e3993
test ci
waelsy123 Feb 4, 2026
4be3547
update foundry.toml
waelsy123 Feb 4, 2026
8bb6035
add master vault contracts
waelsy123 Feb 4, 2026
fb019c4
fixup! add master vault contracts
waelsy123 Feb 4, 2026
e2edd95
fix: slither reentrancy in Mastervault
waelsy123 Feb 4, 2026
2fe0126
test: add mastervault test util contracts
waelsy123 Feb 4, 2026
10a8d51
test: add mastervault tests
waelsy123 Feb 4, 2026
244c278
add yield bearing gateways
waelsy123 Feb 4, 2026
2952945
fixup! add yield bearing gateways
waelsy123 Feb 4, 2026
3f643a0
add L1YbbBridgeDeployer lib
waelsy123 Feb 5, 2026
3cef66b
introduce L1GatewayDeployer lib to reduce L1AtomicTokenBridgeCreator …
waelsy123 Feb 5, 2026
3fc04d3
fixup! introduce L1GatewayDeployer lib to reduce L1AtomicTokenBridgeC…
waelsy123 Feb 5, 2026
e114255
test: e2e Ybb deposit test
waelsy123 Feb 8, 2026
5597e1f
fix: use vault shares decimals
waelsy123 Feb 10, 2026
b26c54c
fix: initiate local roles
waelsy123 Feb 11, 2026
ce02657
fix: check 0 shares
waelsy123 Feb 11, 2026
4aadcf0
fix: add event TargetAllocationUpdated
waelsy123 Feb 11, 2026
520a371
rebalance affects profit assets too
godzillaba Feb 12, 2026
1f3e22c
test: more rebalance tests
waelsy123 Feb 13, 2026
6bf9f42
fix: remove toggle perf fee
waelsy123 Feb 13, 2026
2b0c724
fixup! test: more rebalance tests
waelsy123 Feb 13, 2026
de28387
fix: use safeIncreaseAllowance instead of safeApprove
waelsy123 Feb 13, 2026
6e0107d
refactor: use CREATE2 determinstic deployments
waelsy123 Feb 16, 2026
0f8d4d3
ybb fee-token gateways
waelsy123 Feb 17, 2026
3f49a2a
fix: defaultSubVault mint extra shares
waelsy123 Feb 18, 2026
cc6c1b5
fixup! fix: defaultSubVault mint extra shares
waelsy123 Feb 18, 2026
9654a8f
1.2.1
godzillaba Feb 19, 2026
89a4dfa
Revert "1.2.1"
godzillaba Feb 19, 2026
fc59687
properly restrict default subvault
godzillaba Feb 19, 2026
990ef5b
add mastervault role admin tests
godzillaba Feb 20, 2026
dd546bc
large mutation test file
godzillaba Feb 20, 2026
d074bf8
slight rebalance comment improvement
godzillaba Feb 23, 2026
6ab1b86
scaffold mutation test files
godzillaba Feb 23, 2026
77312db
access control tests moved
godzillaba Feb 23, 2026
b9ec81c
default subvault tests moved
godzillaba Feb 23, 2026
dde5aa9
move fees tests over
godzillaba Feb 23, 2026
4da7e91
start invariant testing
godzillaba Feb 24, 2026
e820d2f
invariant readme
godzillaba Feb 24, 2026
3dc37d0
reorganize mutation tests
godzillaba Feb 24, 2026
ae3147d
decimals test
godzillaba Feb 24, 2026
c94b7ed
no calls on zero amountToTransfer
godzillaba Feb 24, 2026
b8ac8f3
move roles tests into more comprehensive file
godzillaba Feb 24, 2026
1cad122
move only_master_vault test
godzillaba Feb 24, 2026
7044927
restore gitignore
godzillaba Feb 24, 2026
b4ae0ab
restore test files
godzillaba Feb 24, 2026
08c5321
organize tests
godzillaba Feb 24, 2026
778f1f4
remove mutation base
godzillaba Feb 24, 2026
e2e3dc5
introduce YbbVaultLib for deposit & withdraw from vault
waelsy123 Feb 24, 2026
ec1a72b
0% rebalancing special case
godzillaba Feb 24, 2026
a3149d3
refactor rebalance
godzillaba Feb 24, 2026
4eb1bf5
simpler fuzz vault
godzillaba Feb 24, 2026
4a98dfb
Merge branch 'ha/ybb-rebalance-refactor' into ha/ybb-invariant-tests
godzillaba Feb 24, 2026
51641a2
no empty expectRevert
godzillaba Feb 24, 2026
74626ed
test 0% rebalance
godzillaba Feb 25, 2026
fab56c8
Merge branch 'ha/ybb-mutation-testing' into ha/ybb-rebalance-refactor
godzillaba Feb 25, 2026
455e979
Merge branch 'ha/ybb-rebalance-refactor' into ha/ybb-invariant-tests
godzillaba Feb 25, 2026
0910434
fix stale natspec and ambiguous event
godzillaba Feb 25, 2026
e02ec94
small natspec change
godzillaba Feb 25, 2026
e274e7c
Merge branch 'ha/ybb-rebalance-refactor' into ha/ybb-invariant-tests
godzillaba Feb 25, 2026
0e61d92
rebalance to zero invariant test
godzillaba Feb 25, 2026
3801a2d
fuzz rounding error
godzillaba Feb 25, 2026
990f01a
invariant_depositRedeemNoValueExtraction
godzillaba Feb 25, 2026
b7f0905
Merge branch 'feat/yield-bearing-bridge-full' into ha/ybb-mutation-te…
godzillaba Feb 26, 2026
2a03d02
Merge branch 'ha/ybb-mutation-testing' into ha/ybb-rebalance-refactor
godzillaba Feb 26, 2026
864d982
Merge branch 'ha/ybb-rebalance-refactor' into ha/ybb-invariant-tests
godzillaba Feb 26, 2026
d5dae5b
delete readme and fuzz file
godzillaba Feb 26, 2026
50cfcdb
invariant_feeDistributionBounded
godzillaba Feb 26, 2026
0cd8883
fix conversion functions to return ideal ratios when vault is healthy
godzillaba Feb 26, 2026
5f21f5a
better invariant_feeDistributionBounded
godzillaba Feb 26, 2026
15d44f0
Merge branch 'ha/ybb-invariant-tests' into ha/ybb-ratio-drift-fix
godzillaba Feb 26, 2026
21fd31b
fix stale docs
godzillaba Feb 26, 2026
abe121b
Merge pull request #182 from OffchainLabs/ha/ybb-ratio-drift-fix
waelsy123 Feb 27, 2026
45197cc
Merge pull request #181 from OffchainLabs/ha/ybb-invariant-tests
waelsy123 Feb 27, 2026
a1ba0e6
Merge pull request #179 from OffchainLabs/ha/ybb-rebalance-refactor
waelsy123 Feb 27, 2026
b459155
Merge pull request #178 from OffchainLabs/ha/ybb-mutation-testing
godzillaba Feb 27, 2026
da59267
fix bad fsv maxWithdraw
godzillaba Feb 27, 2026
ad6630a
fix div by zero in slippage check
godzillaba Feb 27, 2026
60f4c0f
change manipulation meanings
godzillaba Feb 27, 2026
2a1b7bf
clean up fsv
godzillaba Feb 27, 2026
8f87592
rebalance idempotent
godzillaba Feb 27, 2026
0410682
invariant_redeemRateNeverAbovePar
godzillaba Feb 27, 2026
44f4973
remove confusing ghost manipulation vars
godzillaba Feb 27, 2026
15a8474
no manipulation invariants inheritance
godzillaba Feb 27, 2026
f2e4b34
invariant_rebalancePreservesTotalAssets
godzillaba Feb 27, 2026
9986968
two handlers, remove trivial tests
godzillaba Feb 27, 2026
1a0eddd
reorganize invariant tests and fix broken rebalance test
godzillaba Mar 2, 2026
618f4de
simplify handler
godzillaba Mar 2, 2026
efc6188
refactor: drop the mv shares extra decimals
waelsy123 Mar 2, 2026
7d5e5cd
add distribute fee value conservation test and remove useless invariants
godzillaba Mar 2, 2026
36a2a65
remove unused logstate func
godzillaba Mar 3, 2026
e96d3dc
fix visibility
godzillaba Mar 3, 2026
04fc167
fix slither
godzillaba Mar 3, 2026
8f0def3
add donation attack invariants
godzillaba Mar 3, 2026
d29598b
Merge pull request #184 from OffchainLabs/ha/ybb-more-invariant-tests
waelsy123 Mar 3, 2026
052c65d
improved donation attack tests
godzillaba Mar 3, 2026
468fc6a
Merge remote-tracking branch 'origin/feat/yield-bearing-bridge-full' …
waelsy123 Mar 3, 2026
e440684
restore correct test file and format
godzillaba Mar 3, 2026
2c05eb1
remove EXTRA_DECIMALS from code
godzillaba Mar 3, 2026
c975d7a
remove EXTRA_DECIMALS from comments
godzillaba Mar 3, 2026
e71a8ed
Merge branch 'feat/yield-bearing-bridge-full' into ybb/remove-extra-d…
godzillaba Mar 3, 2026
068a707
remove redundant _totalPrincipal
waelsy123 Mar 3, 2026
a13432e
deposit side of ybb happy case e2e tests
godzillaba Mar 12, 2026
89b16ac
check mastervaultfactory set on custom gateway
godzillaba Mar 12, 2026
b12af74
Merge pull request #183 from OffchainLabs/ybb/remove-extra-deciamls
waelsy123 Mar 17, 2026
672efff
refactor: convert L1GatewayDeployer to internal lib
waelsy123 Mar 17, 2026
9cfacc0
generate contract hashes during compilation
waelsy123 Mar 17, 2026
a2bd27d
test
waelsy123 Mar 17, 2026
0df14a2
revert to 0.8.16 version
waelsy123 Mar 17, 2026
0475489
revert deduplicated code between atomic creator and library
waelsy123 Mar 17, 2026
728810e
ybb withdrawal e2e test
godzillaba Mar 23, 2026
ce09622
set the creation code hashes in the contructor
waelsy123 Mar 23, 2026
1825b67
remove the internal lib L1GatewayDeployer.sol
waelsy123 Mar 23, 2026
f665df8
cleanup constructor L1AtomicTokenBridgeCreator.sol
waelsy123 Mar 24, 2026
688e076
Merge pull request #189 from OffchainLabs/remove-ext-lib
waelsy123 Mar 24, 2026
60efbd9
ybb token bridge creator review (#192)
godzillaba Mar 24, 2026
fd30e35
introduce AbsYbbGateway and rename YbbVaultLib
godzillaba Mar 24, 2026
f8e9ae9
keep dry through inheritance instead of libaries
godzillaba Mar 24, 2026
de464f6
reverse inheritance order to preserve storage
godzillaba Mar 24, 2026
0726095
remove unused imports
godzillaba Mar 24, 2026
f6f7877
additional outbound transfer function with slippage tolerance
godzillaba Mar 25, 2026
684110b
fix test_outboundTransferCustomRefund_revert_ExtraDataDisabled
godzillaba Mar 25, 2026
52ff90c
test new slippage tolerance
godzillaba Mar 25, 2026
a20dfb5
more helpful reverts
godzillaba Mar 25, 2026
904da87
Merge branch 'ha/ybb-gateway-review' into ha/ybb-gateway-slippage-tol…
godzillaba Mar 25, 2026
2558467
slither fix
godzillaba Mar 25, 2026
23f2241
Merge pull request #193 from OffchainLabs/ha/ybb-gateway-review
godzillaba Mar 26, 2026
52e692b
add slippage path to router
godzillaba Mar 26, 2026
7aa0f58
update signatures
godzillaba Mar 26, 2026
ca7f4c4
update natspec
godzillaba Mar 26, 2026
d63c623
add nonReentrant to AbsYbbGateway.outboundTransferCustomRefundWithSli…
godzillaba Mar 26, 2026
658534a
MasterVault fee on transfer token handling (#195)
godzillaba Mar 26, 2026
692bdd7
optimize absYbbNonReentrant
godzillaba Mar 26, 2026
83e4885
Revert "optimize absYbbNonReentrant"
godzillaba Mar 26, 2026
9e487fe
Merge pull request #194 from OffchainLabs/ha/ybb-gateway-slippage-tol…
godzillaba Mar 27, 2026
912f97a
Merge branch 'feat/yield-bearing-bridge-full' into ha/ybb-e2e-test
godzillaba Mar 27, 2026
4395f53
address old review comment (#198)
godzillaba Mar 31, 2026
55c43d6
Merge pull request #188 from OffchainLabs/ha/ybb-e2e-test
godzillaba Mar 31, 2026
43da742
Revert "YBB Happy E2E Tests"
godzillaba Mar 31, 2026
a6748b8
Merge pull request #199 from OffchainLabs/revert-188-ha/ybb-e2e-test
godzillaba Mar 31, 2026
db4dbf2
YBB gateway slippage tolerance e2e test (#196)
godzillaba Mar 31, 2026
9ea8fd9
Update contracts/tokenbridge/ethereum/L1AtomicTokenBridgeCreator.sol
godzillaba Apr 3, 2026
92d34dc
fix typo
godzillaba Apr 3, 2026
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
63 changes: 63 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,69 @@ jobs:
- name: Test e2e orbit token bridge actions
run: yarn hardhat test test-e2e/orbitTokenBridge.ts

test-e2e-ybb:
name: Test e2e YBB
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: OffchainLabs/actions/run-nitro-test-node@main
with:
l3-node: true
no-token-bridge: true
no-l3-token-bridge: true
token-bridge-branch: '${{ github.head_ref }}'

- name: Setup node/yarn
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Install packages
run: yarn

- name: Compile contracts
run: yarn build

- name: Test e2e YBB token bridge
run: yarn hardhat test test-e2e/ybbBridge.ts

test-e2e-ybb-custom-fee-token:
name: Test e2e YBB on custom fee token chain
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: OffchainLabs/actions/run-nitro-test-node@main
with:
l3-node: true
args: --l3-fee-token
no-token-bridge: true
no-l3-token-bridge: true
token-bridge-branch: '${{ github.head_ref }}'

- name: Setup node/yarn
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Install packages
run: yarn

- name: Compile contracts
run: yarn build

- name: Test e2e YBB token bridge on custom fee token chain
run: yarn hardhat test test-e2e/ybbBridge.ts

test-e2e-6-decimals-fee-token:
name: Test e2e on 6-decimals custom fee token chain
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.devcontainer
.gitignore
.env
node_modules
Expand Down Expand Up @@ -26,4 +27,4 @@ gambit_out/
test-mutation/mutant_test_env/

# bridged usdc deployment script
registerUsdcGatewayTx.json
registerUsdcGatewayTx.json
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ Check [this doc](./docs/deployment.md) for instructions on deployment and verifi
Discord: [Arbitrum](https://discord.com/invite/5KE54JwyTs)

Twitter: [Arbitrum](https://twitter.com/arbitrum)

Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ library OrbitSalts {
bytes internal constant L1_STANDARD_GATEWAY = bytes("L1SGW");
bytes internal constant L1_CUSTOM_GATEWAY = bytes("L1CGW");
bytes internal constant L1_WETH_GATEWAY = bytes("L1WGW");
bytes internal constant L1_MASTER_VAULT_FACTORY = bytes("L1MVF");

bytes internal constant L2_PROXY_ADMIN = bytes("L2PA");
bytes internal constant L2_ROUTER = bytes("L2R");
Expand Down
Loading
Loading