- t: Time period (can be discrete, e.g., days, weeks, or continuous)
- u: Index for user, u = 1, 2, ..., N, where N is the number of users
- V(t): Total value of assets deposited in the underlying ERC-4626 Vault at time t
- D_u(t): Deposit amount of user u at time t. We assume deposits are cumulative, so D_u(t) represents the total deposited amount by user u up to time t
- S_u(t): Vault Shares (ERC-4626 tokens) held by user u at time t
This file contains hidden or 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
/* @source {@link https://piccalil.li/blog/a-more-modern-css-reset/} | |
/* Box sizing rules */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* Prevent font size inflation */ | |
html { |
This file contains hidden or 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
TopLevelObject = 'object' '{' Code? ( Object | Data )* '}' | |
Object = 'object' StringLiteral '{' Code? ( Object | Data )* '}' | |
Code = 'code' Block | |
Data = 'data' StringLiteral HexLiteral | |
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'') | |
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"' |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"compress/zlib" | |
"context" | |
"encoding/binary" | |
"fmt" | |
"log" | |
"math/big" |
This file contains hidden or 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 argparse | |
import numpy as np | |
from scipy.optimize import fsolve | |
def payoff(Pt, C, tau_s, r): | |
"""Calculates the payoff of the airdrop for a single user. | |
Args: | |
Pt: Asset price at time t. | |
C: Capital committed by the user at time tau_s. |
This file contains hidden or 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
bun create @knip/config | |
bun add --dev --exact @biomejs/biome | |
npm install --save-dev --save-exact @biomejs/biome | |
npm init @knip/config | |
npm install -D knip typescript @types/node | |
npx knip | |
knip --fix |
This file contains hidden or 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
@startuml | |
skinparam sequenceArrowThickness 2 | |
skinparam roundCorner 20 | |
skinparam maxMessageSize 80 | |
skinparam sequenceParticipant underline | |
skinparam backgroundColor #ffffff | |
title Block Proposal | |
autonumber |
Category | Scope | Foreground Color | Font Style | Description |
---|---|---|---|---|
Visibility Modifiers | storage.type.modifier.keyword.solidity |
#84f56293 |
Underline | Public, memory, etc. modifiers |
External Visibility | storage.type.modifier.keyword.extendedscope.solidity |
#f56262 |
Underline | External scope modifiers |
Control Keywords | keyword.control.solidity |
#fffffff5 |
Bold | Keywords like emit, new, delete |
Functions | entity.name.function.solidity |
#fae674d7 |
Normal | Function names |
Transaction Variables (Inconclusive) | variable.language.transaction.solidity |
#ffc570 |
Bold Underline | Transaction-related variables |
Transaction Variables (Security) | variable.language.transaction.security.solidity |
#f56262 |
Bold Underline | Secure transaction variables |
Transaction Functions (Security) | support.function.transaction.security.solidity |
#f56262 |
Bold Underline |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import requests | |
import json | |
import os | |
# Replace | |
# <$SAFE_WALLET_ADDRESS> | |
# With your address | |
# |
This file contains hidden or 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: UPL-1.0 OR BSD-3 | |
/** | |
* @file LibResult.ts | |
* @version 1.0.0 | |
* @packageDocumentation | |
* | |
* A TypeScript implementation of the Result monad pattern, providing a type-safe way | |
* to handle operations that might fail. This pattern helps eliminate null checks | |
* and provides a more functional approach to error handling. |
NewerOlder