Commit 1dc01d65 authored by vicotor's avatar vicotor

update scripts

parent 86d948d2
...@@ -42,19 +42,13 @@ async function treasuryApprove(tokenA, tokenB, bridgeAddr, treasury) { ...@@ -42,19 +42,13 @@ async function treasuryApprove(tokenA, tokenB, bridgeAddr, treasury) {
} }
async function setTokenTreasuryConfig(tokenA, tokenB, bridge) { async function setTokenTreasuryConfig(tokenA, tokenB, bridge) {
var tx = await bridge.setTreasuryConfig( var tokenAAddr = await tokenA.getAddress();
await tokenA.getAddress(), var tx = await bridge.setTreasuryConfig(tokenAAddr, hre.ethers.parseEther('0.0001'), 500, true);
hre.ethers.parseEther('0.0001'),
500, // 5%
)
await tx.wait(); await tx.wait();
console.log("Set treasury config for TTA"); console.log("Set treasury config for TTA");
tx = await bridge.setTreasuryConfig( var tokenBAddr = await tokenB.getAddress();
await tokenB.getAddress(), tx = await bridge.setTreasuryConfig(tokenBAddr, hre.ethers.parseEther('0.0001'), 500, true);
hre.ethers.parseEther('0.0001'),
500, // 5%
)
await tx.wait(); await tx.wait();
console.log("Set treasury config for TTB"); 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