Commit 1dc01d65 authored by vicotor's avatar vicotor

update scripts

parent 86d948d2
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment