|
@@ -4,11 +4,11 @@ import bmabiData from "@/utils/abijson/bmabi.json";
|
|
import pubData from "@/utils/abijson/pub.json";
|
|
import pubData from "@/utils/abijson/pub.json";
|
|
|
|
|
|
const TOKEN_ADDRESSES = {
|
|
const TOKEN_ADDRESSES = {
|
|
- wgt: "0x654d24C90a96A28496b467aff895249f76085b0F",
|
|
|
|
- stt: "0xA01D6c063B66D2D435AcC4d99b05983218A8BD4A"
|
|
|
|
|
|
+ wgt: "0x1b7fE9d431a8357dBf7BB1621df9e7Bd2973eBB2",
|
|
|
|
+ stt: "0xC891A3F6E9B560a4F21eEABc884d92073D36fF87"
|
|
};
|
|
};
|
|
|
|
|
|
-const MANAGER_ADDRESS = "0x18ba37fc6f7890ffeffce2414e7d9a929fa67f51";
|
|
|
|
|
|
+const MANAGER_ADDRESS = "0x0497479bf2E84B031BcCfc38A25e419174acF903";
|
|
|
|
|
|
function normalizePrivateKey(pk) {
|
|
function normalizePrivateKey(pk) {
|
|
return pk.startsWith("0x") ? pk : "0x" + pk;
|
|
return pk.startsWith("0x") ? pk : "0x" + pk;
|
|
@@ -61,7 +61,7 @@ async function sendSingleReward(privateKey, amount, GasRate) {
|
|
const account = web3.eth.accounts.privateKeyToAccount(privateKey);
|
|
const account = web3.eth.accounts.privateKeyToAccount(privateKey);
|
|
const sender = account.address;
|
|
const sender = account.address;
|
|
const amountWei = web3.utils.toWei(amount.toString(), "ether");
|
|
const amountWei = web3.utils.toWei(amount.toString(), "ether");
|
|
- const contractAddress = "0xd068b5c23f62ee3dbf7141a34d940f2a39664484";
|
|
|
|
|
|
+ const contractAddress = "0x712fA39BF916C30697768dC5c00298f9340C7b27";
|
|
const contract = new web3.eth.Contract(jlabiData, contractAddress);
|
|
const contract = new web3.eth.Contract(jlabiData, contractAddress);
|
|
|
|
|
|
const { timestamp, nonceForSig, signature } = await buildSignatureParams(sender, amountWei, contractAddress);
|
|
const { timestamp, nonceForSig, signature } = await buildSignatureParams(sender, amountWei, contractAddress);
|