Skip to content

Instantly share code, notes, and snippets.

View dawksh's full-sized avatar
🤓
building

daksh dawksh

🤓
building
View GitHub Profile
#include <Servo.h>
#include <Keypad.h>
Servo servoMotor;
const int servoPin = 913; // Digital pin connected to the servo
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
char keys[ROWS][COLS] = {
{'1','2','3','A'},
@dawksh
dawksh / swap.sol
Created March 1, 2022 19:29
should swap using v3
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
pragma abicoder v2;
import "https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/interfaces/ISwapRouter.sol";
import "https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/interfaces/IQuoter.sol";
import "https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/TransferHelper.sol";
interface IUniswapRouter is ISwapRouter {
function refundETH() external payable;