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.10; | |
interface INFTPreBidder { | |
/** | |
* @notice Emitted when the bid is created | |
* @param id The id of the new bid | |
* @param bidder msg.sender | |
* @param collateralContract The contract address of the collateral NFT | |
* @param collateralTokenId The token id of the collateral NFT, can be a negative number to indicate bidder doesn't care which token ID | |
* @param loanAssetContract The contract address of the loan asset |
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
async function main() { | |
const [deployer] = await ethers.getSigners(); | |
console.log( | |
"Running batch create loans script with signer:", | |
await deployer.getAddress() | |
); | |
const NFTLoanFacilitatorContract = await ethers.getContractFactory("NFTLoanFacilitator"); | |
const facilitator = await NFTLoanFacilitatorContract.attach( | |
"0x2b804a97b2b3710b71ed1764eb6fa36233440738" |
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.6.8; | |
pragma experimental ABIEncoderV2; | |
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; | |
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; | |
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; | |
import {Decimal} from "./Decimal.sol"; |
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.6.8; | |
pragma experimental ABIEncoderV2; | |
import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; | |
import { IERC721, IERC165 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; | |
import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; | |
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; |
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.6.8; | |
pragma experimental ABIEncoderV2; | |
/** | |
* @title Interface for Auction Houses | |
*/ | |
interface IAuctionHouse { | |
struct Auction { |
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
contract WyvernExchange is Exchange { | |
function calculateMatchPrice_( | |
address[14] addrs, | |
uint[18] uints, | |
uint8[8] feeMethodsSidesKindsHowToCalls, | |
bytes calldataBuy, | |
bytes calldataSell, | |
bytes replacementPatternBuy, | |
bytes replacementPatternSell, | |
bytes staticExtradataBuy, |
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
/** | |
*Submitted for verification at Etherscan.io on 2018-06-12 | |
*/ | |
pragma solidity ^0.4.13; | |
library SafeMath { | |
/** | |
* @dev Multiplies two numbers, throws on overflow. |