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
pragma solidity ^0.8.0; | |
// SPDX-License-Identifier: MIT | |
import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.7/interfaces/AggregatorV3Interface.sol"; | |
contract PriceConsumerV3 { | |
AggregatorV3Interface internal priceFeed; | |
/** | |
* Network: Rinkeby |
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
pragma solidity 0.5.3; | |
/* | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | |
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
///-safemath, ownable, reentrancy,et.. | |
//add proxy contracts below | |
interface ZapInUniSwap2 { | |
//updated zapIn parameters - replace slippage w/ _minPoolTokkenss | |
function ZapIn( | |
address _FromTokenContractAddress, | |
address _ToUnipoolToken0, | |
address _ToUnipoolToken1, |
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
pragma solidity ^0.6.0; | |
/** | |
* @dev Wrappers over Solidity's arithmetic operations with added overflow | |
* checks. | |
* | |
* Arithmetic operations in Solidity wrap on overflow. This can easily result | |
* in bugs, because programmers usually assume that an overflow raises an | |
* error, which is the standard behavior in high level programming languages. |
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
pragma solidity 0.5.3; | |
/* | |
adminFee = userTokenBalances[GUILD][token] / adminFeeDenominator; | |
if adminFeeDenominator is greater than or equal to 200, then adminFee will be less than or equal to .5% | |
-- allows LAO to reduce fees if desired, but not required to reduce . | |
Using OpenZeppelin's Ownable.sol contract to manage who is the service provider. It will be The LAO at launch. |
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
pragma solidity 0.5.3; | |
/* | |
adminFee = totalLoot+totalShares/adminFeeDenominator | |
if adminFeeDenominator is greater than or equal to 200, then adminFee will be less than or equal to .5% | |
-- allows LAO to reduce fees if desired, but not required to reduce . | |
Using OpenZeppelin's Ownable.sol contract to manage who is the service provider. It will be The LAO at launch. |
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
pragma solidity 0.5.3; | |
/* | |
adminFee = totalLoot+totalShares/adminFeeDenominator | |
if adminFeeDenominator is greater than or equal to 200, then adminFee will be less than or equal to .5% | |
-- allows LAO to reduce fees if desired, but not required to reduce . | |
Using OpenZeppelin's Ownable.sol contract to manage who is the service provider. It will be The LAO at launch. |
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
/* | |
adminFee = totalLoot+totalShares/adminFeeDenominator | |
if adminFeeDenominator is greater than or equal to 200, then adminFee <= .5% -- allows LAO to reduce fees | |
*/ | |
//summoningTime = now/time contract deployed | |
uint256 public lastPaymentTime = summoningTime + paymentPeriod; | |
//uint256 paymentPeriod = 90 days; //every quarter. |
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
///LAO - ADD ON, only ADMIN can withdraw the admin fee of .5% every 90 days. | |
uint256 public dueDate = now + paymentPeriod; | |
uint256 paymentPeriod = 90 days; //every quarter. | |
function withdrawAdminFee (address escrowAddress) public onlyWhitelisted { | |
//require > 90 days (dueDate) have passed since last withdrawal | |
require (now >= dueDate, "90 days have not passed"); | |
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
import React, { Component } from "react"; | |
import BillOfSaleContract from "./contracts/BillOfSale.json"; | |
import getWeb3 from "./utils/getWeb3"; | |
import { Container,Grid, Button, Form} from 'semantic-ui-react'; | |
import { APIClient, Openlaw } from 'openlaw'; | |
import "./App.css"; | |
//PLEASE SUPPLY YOUR OWN LOGIN CREDENTIALS FOR OPENLAW | |
const URL = "https://app.openlaw.io"; //url for your openlaw instance eg. "http://myinstancename.openlaw.io" | |
const TEMPLATE_NAME = "OpenLaw API Tutorial Sale Agreement"; //name of template stored on Openlaw |
NewerOlder