Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bridgecontract
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
movabridge
bridgecontract
Commits
1dc01d65
Commit
1dc01d65
authored
Aug 20, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scripts
parent
86d948d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
setconfig.js
scripts/setconfig.js
+4
-10
No files found.
scripts/setconfig.js
View file @
1dc01d65
...
...
@@ -42,19 +42,13 @@ async function treasuryApprove(tokenA, tokenB, bridgeAddr, treasury) {
}
async
function
setTokenTreasuryConfig
(
tokenA
,
tokenB
,
bridge
)
{
var
tx
=
await
bridge
.
setTreasuryConfig
(
await
tokenA
.
getAddress
(),
hre
.
ethers
.
parseEther
(
'
0.0001
'
),
500
,
// 5%
)
var
tokenAAddr
=
await
tokenA
.
getAddress
();
var
tx
=
await
bridge
.
setTreasuryConfig
(
tokenAAddr
,
hre
.
ethers
.
parseEther
(
'
0.0001
'
),
500
,
true
);
await
tx
.
wait
();
console
.
log
(
"
Set treasury config for TTA
"
);
tx
=
await
bridge
.
setTreasuryConfig
(
await
tokenB
.
getAddress
(),
hre
.
ethers
.
parseEther
(
'
0.0001
'
),
500
,
// 5%
)
var
tokenBAddr
=
await
tokenB
.
getAddress
();
tx
=
await
bridge
.
setTreasuryConfig
(
tokenBAddr
,
hre
.
ethers
.
parseEther
(
'
0.0001
'
),
500
,
true
);
await
tx
.
wait
();
console
.
log
(
"
Set treasury config for TTB
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment