Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BFP config, wstETH and sUSDe as collaterals on L1 #468

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ced6340
Update bfp to 3.8.0
0xMithrandir Oct 7, 2024
c792d69
Configure wstETH and sUSDe as collaterals
0xMithrandir Oct 8, 2024
786465f
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 8, 2024
a04e40b
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 9, 2024
be623d5
Add back the bfp tests
0xMithrandir Oct 9, 2024
5dd56ac
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 16, 2024
601c6e5
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 17, 2024
75f4004
Update versions and collaterals
0xMithrandir Oct 17, 2024
23ec0bc
Rename sUSD test files
0xMithrandir Oct 18, 2024
9209f8b
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 18, 2024
f4762ea
Update variables
0xMithrandir Oct 18, 2024
d0bdc5f
Update invoke dependencies
0xMithrandir Oct 21, 2024
dcec0a3
Update bfp package
0xMithrandir Oct 21, 2024
3be8686
Standardizing collateral configuration
0xMithrandir Oct 23, 2024
6e6f124
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 24, 2024
e169871
Update snx package
0xMithrandir Oct 24, 2024
ede939e
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 24, 2024
f787b29
Add missing param
0xMithrandir Oct 24, 2024
796abc0
Update oracles
0xMithrandir Oct 24, 2024
d2c718f
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 25, 2024
ca13379
Merge branch 'main' into bfp-config-update
0xMithrandir Oct 28, 2024
b9f1189
Update package version
0xMithrandir Oct 28, 2024
e59596a
Update package
0xMithrandir Oct 31, 2024
e8bac04
Merge branch 'main' into bfp-config-update
0xMithrandir Nov 18, 2024
00281ad
Merge branch 'main' into bfp-config-update
0xMithrandir Nov 20, 2024
6d16dac
Merge branch 'main' into bfp-config-update
0xMithrandir Dec 10, 2024
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
4 changes: 3 additions & 1 deletion e2e/tasks/settleBfpOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function settleBfpOrder({ wallet, accountId, marketId }) {
log({ times });

if (orderDigest.sizeDelta.eq(0)) {
throw Error('Order does not exists.');
throw Error('Order does not exist.');
}
if (orderDigest.isReady) {
throw Error('Order is not ready to settle.');
Expand All @@ -54,10 +54,12 @@ async function settleBfpOrder({ wallet, accountId, marketId }) {
const gasLimit = await BfpMarketProxy.estimateGas
.settleOrder(...args, { value: ethers.BigNumber.from(1) })
.catch(parseError);

const tx = await BfpMarketProxy.settleOrder(...args, {
gasLimit: gasLimit.mul(2),
value: ethers.BigNumber.from(1),
}).catch(parseError);

await tx
.wait()
.then((txn) => log(txn.events) || txn, parseError)
Expand Down
Loading