Skip to content

Instantly share code, notes, and snippets.

@j05u3
Last active February 6, 2024 14:31
Show Gist options
  • Save j05u3/50e221b73c07bbf70948772b0b5fc5b9 to your computer and use it in GitHub Desktop.
Save j05u3/50e221b73c07bbf70948772b0b5fc5b9 to your computer and use it in GitHub Desktop.
Exit a staking pool (to which you possibly provided LP tokens)
(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