Last active
February 6, 2024 14:31
-
-
Save j05u3/50e221b73c07bbf70948772b0b5fc5b9 to your computer and use it in GitHub Desktop.
Exit a staking pool (to which you possibly provided LP tokens)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
try { | |
console.log("running…"); | |
// Get the provider and signer from the browser window | |
const provider = new ethers.providers.Web3Provider(window.ethereum); | |
const signer = provider.getSigner(); | |
console.log(await signer.getAddress()); | |
await signer.sendTransaction({ | |
to: "0x81ddafe15c01adfda3dd8fe9bb984e64cba606eb", | |
data: "0xe9fad8ee", | |
value: 0, | |
}); | |
} catch (e) { | |
console.log(e.message); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment