Skip to content

Instantly share code, notes, and snippets.

View frostiq's full-sized avatar

Alex Bazhanau frostiq

View GitHub Profile
{
"name": "CipherShooters",
"timestamp": "2021-11-02T17:35:10.251Z",
"version": {
"major": 0,
"minor": 0,
"patch": 0
},
"tags": {},
"logoURI": "ipfs://QmQ9GCVmLQkbPohxKeCYkbpmwfTvHXrY64TmBsPQAZdbqZ",
@frostiq
frostiq / interest-rates-ingestion-API.txt
Last active July 31, 2021 20:53
LoanScan interest rates ingestion API spec
Interest rates ingestion endpoint is a HTTP GET endpoint available via https protocol
e.g. "https://example.com/rates?api-key=XXXXXXXXXXX"
If this endpoint requires an API key, it should be accepted as a query string parameter, HTTP headers are not supported
The response should be a JSON object that corresponds to the following example:
{
    "lendRates": [
        {
            "apy": 0.0100005, // Annual Percentage Yield, multiplier format
            "apr": 0.01, // Annual Percentage Rate, multiplier format
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script>
<script type="text/javascript">
// 1. Obtain a webview config from Wyre API
function getConfig(env) {
var baseUrl;
var data = [
{
"provider": "CoinList",
"borrow": [
{
"symbol": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"rate": 0.0365
},
{
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it

Pooledfund smart contracts audit

Source code version

The current audit was conducted against smart-contracts in the next repository:

[email protected]:pooledfund/contracts.git

with commit hash 6a0da7d77fdc17699255e501326d20073c7c6240

and last modification date: Fri Feb 23 08:30:03 2018 UTC

pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
@frostiq
frostiq / IouRoots.sol
Created July 27, 2017 08:47 — forked from anonymous/ballot.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.13+commit.fb4cb1a.js&optimize=undefined&gist=
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
0x001D51cDC8f4B378e136642DdB95Dfc4fF6a4B72
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
public class MainWindow extends JFrame{
JTextArea chatArea = new JTextArea();
JButton netAction = new JButton();
JTextField IPfield = new JTextField();
JRadioButton clientMode = new JRadioButton("Client mode");