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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.6.12; | |
pragma experimental ABIEncoderV2; | |
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; | |
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; | |
import "./external/compound/Comptroller.sol"; | |
import "./external/compound/PriceOracle.sol"; |
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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.6.12; | |
pragma experimental ABIEncoderV2; | |
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; | |
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; | |
import "./external/compound/Comptroller.sol"; | |
import "./external/compound/PriceOracle.sol"; |
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
import { BigNumber, Contract } from "ethers"; | |
import { ConvexPool, pools } from "./convexpools"; | |
import { formatEther, formatUnits } from "ethers/lib/utils"; | |
import BaseRewardPoolABI from "./abis/convex/BaseRewardPool.json"; | |
import SwapABI from "./abis/convex/Swap.json"; | |
import DepositTokenABI from "./abis/convex/DepositToken.json"; | |
export async function convexAPR(poolName: string, provider: any) { | |
return await convexAPRWithPrice(poolName, -1, -1, provider); |
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
import { BigNumber, Contract } from "ethers"; | |
import { ConvexPool, pools } from "./convexpools"; | |
import { formatUnits } from "ethers/lib/utils"; | |
import BaseRewardPoolABI from "./abis/convex/BaseRewardPool.json"; | |
import SwapABI from "./abis/convex/Swap.json"; | |
import DepositTokenABI from "./abis/convex/DepositToken.json"; | |
export async function convexAPR(poolName: string, provider: any) { | |
return await convexAPRWithPrice(poolName, -1, -1, provider); |
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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.6.12; | |
pragma experimental ABIEncoderV2; | |
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; | |
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; | |
import "./external/compound/Comptroller.sol"; | |
import "./external/compound/PriceOracle.sol"; |
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
// SPDX-License-Identifier: UNLICENSED | |
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol. SEE BELOW FOR SOURCE. !! | |
pragma solidity >=0.5.0 <0.9.0; | |
pragma experimental ABIEncoderV2; | |
struct FusePoolDirectory_FusePool { | |
string name; | |
address creator; | |
address comptroller; | |
uint256 blockPosted; |
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
import React, { useState, useEffect } from "react"; | |
import { Flex, FlexProps } from "@chakra-ui/react"; | |
/* Typings */ | |
export type MainAxisAlignmentStrings = | |
| "space-between" | |
| "space-around" | |
| "flex-start" | |
| "center" |
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
// Components | |
import ProfilePage from 'components/Pages/Profile' | |
import Head from 'next/head' | |
import { getUserByHandle } from "utils/api/user" | |
const Profile = ({ user }) => { | |
console.log({user}) | |
return ( | |
<> |
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
alias cdd="cd ~/Documents" | |
alias cddesktop="cd ~/Desktop" | |
# Git | |
alias clone="git clone" | |
alias pull="git pull" | |
alias push="git push" | |
alias commit="git commit -m" | |
alias fetchall="git fetch --all" |
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
[ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "rate", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} |
NewerOlder