Skip to content

Instantly share code, notes, and snippets.

View OxMarco's full-sized avatar

OxMarco OxMarco

  • Somewhere in Europe
  • 10:35 (UTC +02:00)
  • X @OxMarco_
View GitHub Profile
@OxMarco
OxMarco / Swing Pricing.md
Last active August 31, 2024 08:06
Swing Pricing - a systematic review of possible implementations

Swing Pricing and Liquidation Premiums - a systematic review of possible implementations for a mutual fund

Introduction

One of the primary issues in market turmoil situations, such as bank runs, is the advantage that first movers have: when investors rush to redeem their shares in a fund, those who move first often receive a better asset value, while remaining investors are left to bear the costs related with liquidation. A well-designed liquidity transformation method moves the redemption costs to the redeeming investors, mitigating this first-mover advantage and promoting fairness among all investors.

Swing Pricing

Swing pricing adjusts the NAV of a fund to reflect the costs associated with redemptions. This adjustment ensures that the remaining investors are equally affected by the costs incurred due to others redeeming their shares. As a result, swing pricing is a key tool in managing funds, designed to mitigate the adverse effects of large-scale redemptions and to break the first-mover advan

WiFi Mesh - Existing Alternatives

Reticulum

A project aimed at creating a peer to peer multi-device secure data routing protocol, in a way similar to Tor, where developers can build applications on top.

Not suitable as it doesn't operate on the OSI level 2 and it would require creating ad hoc apps like browser, XMPP, file-sharing, etc.

Light-based data sharing

Various options available, from the commercial Koruza to the open source Ronja. Essentially consists of devices connected via lasers over long distances, up to 1km. It requires line of sight at all the time and constant maintenance to clean the lenses, readjust the position and measure the transmitted power.

Not suitable as maintenance is too time-consuming over time for non professional operators.

// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.24;
import {ERC4626, IERC4626} from "@openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
@OxMarco
OxMarco / README.md
Last active August 15, 2024 11:39
README.md

Project Name

Solidity NodeJS NodeJS Docs

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { Counters } from "@openzeppelin/contracts/utils/Counters.sol";
import { IERC20, SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract CDS is ERC721 {
using SafeERC20 for IERC20;
using Counters for Counters.Counter;

Dandelion: A Decentralised Offramping Protocol for Efficient and Tax-Free Whale Transactions

Abstract

This paper introduces a novel approach to facilitate cost-effective and tax-free offramping for large cryptocurrency holders, commonly referred to as whales. The proposed protocol leverages a decentralised network of random users acting as money relay nodes, allowing whales to transfer substantial amounts of funds to multiple destination bank accounts while mitigating transaction costs and regulatory implications. By utilising zero-knowledge proofs and a reimbursement mechanism, the protocol ensures the successful execution of micro transactions and provides incentives to participating users. This paper presents the design, implementation, and potential benefits of the proposed decentralised offramping protocol.

Table of Content

  1. Introduction
    1. Background
    2. Motivation
  2. Objectives
@OxMarco
OxMarco / SpritzFinance.md
Last active January 16, 2023 23:23
Spritz Finance - Architectural and Code review

NOTES ON DAO AND SUCH

Where to Incorporate

Cayman/Panama Foundation

Generally used to incorporate DAOs and have similar features to a LLC without having an official director and a public list of members.

Pro:

  • Easy to setup
  • No need to KYC members
@OxMarco
OxMarco / Spritz.md
Created September 19, 2022 13:03
Spritz.md

Spritz Finance - Report

19/09/2022

Repository - General Comments

.husky and .yarn I guess you used Paulrberg template. They are quite useless tbh

.vscode Opinionated to keep it in the source repo, especially if not all your devs use VSCode. Better to add a separate document to explain code style (i.e. formatting, line breaks, comment style, NatSpec position, etc.)