Skip to content

Instantly share code, notes, and snippets.

View DappaDanDev's full-sized avatar

DanDappa DappaDanDev

View GitHub Profile
@DappaDanDev
DappaDanDev / FlashLoanReceiverBase.sol
Last active February 1, 2024 15:24
Creating a Flash Loan using Aave
pragma solidity ^0.6.6;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v3.x/contracts/math/SafeMath.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v3.x/contracts/token/ERC20/IERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/docs-v3.x/contracts/token/ERC20/SafeERC20.sol";
import "./IFlashLoanReceiver.sol";
import "./ILendingPoolAddressesProvider.sol";
import "./Withdrawable.sol";
abstract contract FlashLoanReceiverBase is IFlashLoanReceiver, Withdrawable {
@DappaDanDev
DappaDanDev / gist:3df2537d9f25e787fad0fee4b7500aed
Last active March 29, 2023 14:56
How to Create and Deploy a Smart Contract on Flow
# How to Create and Deploy a Smart Contract on Flow
## Overview
[Flow](https://flow.com/) is a blockchain designed from the ground up to deliver the performance required of mainstream consumer apps. It does this through its approach to smart contracts, account access, and a native programming language called Cadence.
In this guide, you will learn how to deploy a smart contract on Flow written in Cadence.
Before you "go with the Flow", here are some important concepts about the Flow blockchain. This will help you better understand the smart contract code and deployment later: