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 Test { | |
for (uint i = 0; i < messages.length; i++) { for (uint i = 0; i < messages.length; i++) { | |
string memory symbol = OpenOraclePriceData(address(data)).put(messages[i], signatures[i]); OpenOraclePriceData(address(data)).put(messages[i], signatures[i]); | |
// Possibly add to the unique symbol set | |
bool found = false; | |
for (uint j = 0; j < symbols.length; j++) { | |
if (keccak256(abi.encodePacked(symbol)) == keccak256(abi.encodePacked(symbols[j]))) { | |
found = true; | |
break; |
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 Test { | |
for (uint i = 0; i < messages.length; i++) { for (uint i = 0; i < messages.length; i++) { | |
string memory symbol = OpenOraclePriceData(address(data)).put(messages[i], signatures[i]); OpenOraclePriceData(address(data)).put(messages[i], signatures[i]); | |
// Possibly add to the unique symbol set | |
bool found = false; | |
for (uint j = 0; j < symbols.length; j++) { | |
if (keccak256(abi.encodePacked(symbol)) == keccak256(abi.encodePacked(symbols[j]))) { | |
found = true; | |
break; |
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
{"SELECT s0.\"account\", s0.\"token_addresses\", s0.\"token_borrow_balance_underlyings\", s0.\"token_supply_balance_underlyings\", s0.\"total_liquidity_value\", s0.\"total_borrow_value\", s0.\"total_collateral_value\", ( s0.\"total_collateral_value\" )::numeric / NULLIF((s0.\"total_borrow_value\")::numeric, 0) FROM (SELECT s0.\"account\" AS \"account\", array_agg(s0.\"token_address\"::text) AS \"token_addresses\", json_object_agg(s0.\"token_address\", s0.\"borrow_balance_underlying\") AS \"token_borrow_balance_underlyings\", json_object_agg(s0.\"token_address\", s0.\"supply_balance_underlying\") AS \"token_supply_balance_underlyings\", sum(s0.\"liquidity_value\") AS \"total_liquidity_value\", sum(s0.\"borrow_value\") AS \"total_borrow_value\", sum(s0.\"collateral_value\") AS \"total_collateral_value\" FROM (SELECT s0.\"id\" AS \"id\", s0.\"account\" AS \"account\", s0.\"block_number\" AS \"block_number\", s0.\"log_index\" AS \"log_index\", s0.\"supply\" AS \"supply\", s0.\"borrow\" AS \"borrow\", s0.\"interes |
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.7; | |
contract Logalitos { | |
event Log(address x, string y); | |
function logger() public { | |
emit Log(msg.sender, "logger"); | |
} | |
function outsideLog() public { |
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.2; | |
contract StoraTheExplora { | |
address delegate; | |
constructor() public { | |
} | |
function setBacon(uint a) public { | |
(bool success, bytes memory data) = delegate.delegatecall(abi.encodePacked(bytes4(keccak256("setBacon(uint256)")), a)); | |
} |
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.4; | |
contract AddressSetHaver { | |
uint[] public testList = [1,2,3,4,5,6]; | |
uint[] public smallList = [5]; | |
function emptySmallList() public { | |
smallList.length --; | |
} | |
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.4; | |
contract AddressSetHaver { | |
uint[] public testList = [1,2,3,4,5,6]; | |
uint[] public smallList = [5]; | |
function emptySmallList() public { | |
smallList.length --; | |
} | |
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.2; | |
contract AssetsListTest { | |
uint8[] arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]; | |
uint8[] nearlyFull = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28]; | |
uint8[] empty; | |
constructor() public { | |
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 SupplyPolicyHook { | |
struct SupplyLocalVars { | |
uint startingBalance; | |
uint newSupplyIndex; | |
uint userSupplyCurrent; | |
uint userSupplyUpdated; | |
uint newTotalSupply; | |
uint currentCash; | |
uint updatedCash; | |
uint newSupplyRateMantissa; |
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 SupplyPolicyHook { | |
struct SupplyLocalVars { | |
uint startingBalance; | |
uint newSupplyIndex; | |
uint userSupplyCurrent; | |
uint userSupplyUpdated; | |
uint newTotalSupply; | |
uint currentCash; | |
uint updatedCash; | |
uint newSupplyRateMantissa; |
NewerOlder