This file contains 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
export default async function handler(req, res) { | |
if (req.method !== 'POST') { | |
return; | |
} | |
const dd = req.body | |
let contractname; | |
let data = new FormData(); | |
let API_KEY = 'xxxxxxxx'; |
This file contains 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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
import "hardhat/console.sol"; | |
contract Panotic{ | |
function exercise( | |
int128 realizedPremium |
This file contains 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
require('dotenv').config(); | |
import { | |
Connection, | |
VersionedTransaction, | |
Keypair, | |
PublicKey, | |
TransactionInstruction, | |
AddressLookupTableAccount, | |
TransactionMessage |
This file contains 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
// SPDX-License-Identifier: BSD-3-Clause | |
pragma solidity ^0.8.10; | |
import "./SafeMath.sol"; | |
contract Timelock { | |
using SafeMath for uint; | |
event NewAdmin(address indexed newAdmin); | |
event NewPendingAdmin(address indexed newPendingAdmin); |
This file contains 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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.0; | |
import "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol"; | |
import "@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol"; | |
contract Swap is IFlashLoanRecipient { | |
IVault private constant vault = IVault(0xBA12222222228d8Ba445958a75a0704d566BF2C8); | |
event eventLog(string eventName); |