Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EXP-7-210] feat: push StrategyReported event data to postgres #210

Open
wants to merge 86 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
9877787
feat: push StrategyReported event data to postgres
wavey0x Jan 30, 2022
470b61c
chore: remove unused imports
wavey0x Jan 30, 2022
8eb319f
fix: add Event object back
wavey0x Jan 30, 2022
30228e8
chore: prepare rebase
wavey0x Feb 15, 2022
05a04eb
feat: improve endorsement logic
wavey0x Feb 15, 2022
cc87215
feat: normalize kp3r payments
wavey0x Feb 15, 2022
19517fc
feat: added ftm registry block
wavey0x Feb 16, 2022
78d5e06
feat: gitignore cleanup
wavey0x Feb 16, 2022
97db955
fix: fix reports model
wavey0x Feb 16, 2022
8014c14
feat: cache vault endorsement block
wavey0x Feb 22, 2022
80450a4
feat: add discord message support
wavey0x Feb 24, 2022
ac214c5
fix: point to proper mainnet chan
wavey0x Feb 24, 2022
21016fd
feat: caller emojis
wavey0x Feb 24, 2022
32b3512
feat: chain id text
wavey0x Feb 24, 2022
6640c55
feat: add time since last report
wavey0x Feb 25, 2022
1d15195
fix: handle None type on apr fields
wavey0x Feb 26, 2022
7a0f76e
feat: add daily harvest report script
wavey0x Feb 28, 2022
828995c
feat: add cumulative report to dev channel
wavey0x Feb 28, 2022
6ea3318
feat: add tenderly link and chain identifiers on messages
wavey0x Mar 11, 2022
49b4752
fix: emoji name fix
wavey0x Mar 11, 2022
19e0abe
fix: tenderly url
wavey0x Mar 11, 2022
41f121d
fix: tenderly url string
wavey0x Mar 12, 2022
ffdb572
fix: tenderly url string
wavey0x Mar 12, 2022
f78da89
feat: arbi support
wavey0x Mar 17, 2022
6ba435a
feat add explorer URL to arbi
wavey0x Mar 25, 2022
6bd8e72
feat: gitignore
wavey0x Apr 4, 2022
c8e953b
feat: correct treasury fee bug after strategist fee rug
wavey0x Apr 11, 2022
0fc4ebe
feat: remove strategist fee from output
wavey0x Apr 20, 2022
76d77fb
feat: reth price band-aid fix
wavey0x Apr 22, 2022
ba3a278
feat: add inverse alerts
wavey0x Apr 22, 2022
a84d301
fix: add var to chain 1
wavey0x Apr 22, 2022
7994871
feat: extra detail
wavey0x Apr 22, 2022
b5e2bce
feat: simplify inverse harvest alert formatting
wavey0x Apr 23, 2022
6e99252
fix: replace underscores in symbol
wavey0x May 15, 2022
4f42d28
feat: custom inverse tg post
wavey0x Jun 5, 2022
6ad2c98
fix: revert txn check check logic
wavey0x Jun 7, 2022
b73369a
fix: revert txn check check logic
wavey0x Jun 7, 2022
801ce16
feat: eliminate txn fee double counting
wavey0x Jun 7, 2022
6b635f7
fix: reth/wsteth price
wavey0x Jul 29, 2022
57cb488
feat: support CRV lock stats on inverse harvests
wavey0x Aug 8, 2022
cb4d014
feat: add keepcrv data
wavey0x Aug 10, 2022
ec83d7a
fix: only do keepcrv on chainid=1
wavey0x Aug 10, 2022
221d00a
feat: arbi support
wavey0x Aug 12, 2022
b74ccf5
fix: keepcrv display
wavey0x Aug 12, 2022
f3e4106
fix: utils
wavey0x Aug 16, 2022
695051d
fix: multicall
wavey0x Aug 16, 2022
87aee69
feat: opti support
wavey0x Oct 4, 2022
2957d5d
feat: add ycrv interface
wavey0x Oct 7, 2022
a81f0e9
feat: add ycrv interface
wavey0x Oct 7, 2022
a776d61
feat: unblock ycrv
wavey0x Oct 7, 2022
73bf298
fix: optimism tenderly keyword
wavey0x Oct 7, 2022
19f27ef
fix: ycrv price
wavey0x Oct 7, 2022
130be20
feat: treasury
wavey0x Oct 18, 2022
5bd2fe2
fix: pricing
wavey0x Oct 18, 2022
fbfed42
chore: enable alerts
wavey0x Oct 18, 2022
18b6e90
feat: properly display stycrv apr
wavey0x Oct 24, 2022
a07e039
feat add inverse vault
wavey0x Oct 27, 2022
f14e48a
feat: add opti to daily report
wavey0x Nov 1, 2022
0ceadca
fix: ycrv pricing error due to spammy pools
wavey0x Dec 9, 2022
8e91afb
feat: support factory vaults
wavey0x Jan 23, 2023
95a1d3b
feat: support factory vaults
wavey0x Jan 23, 2023
b6a8d50
feat: contract getter
wavey0x Jan 23, 2023
58c346d
feat: emojis
wavey0x Jan 27, 2023
15f7f9f
feat: suppress alerts on 0 gain for public channels
wavey0x Feb 2, 2023
f411261
fix: peth exception
wavey0x Feb 17, 2023
e0e4b99
fix
wavey0x Feb 20, 2023
938b9ef
feat: sdcrv
wavey0x Feb 23, 2023
7857d70
feat: sdcrv
wavey0x Feb 23, 2023
ec38220
feat: opti new registry
wavey0x Feb 27, 2023
1c28acd
feat: disable alerts locally
wavey0x Feb 27, 2023
66b8c29
chore: keeper indicator
wavey0x Mar 4, 2023
f560f3c
chore: temp price fix
wavey0x Mar 31, 2023
86c02f4
chore: backout get_contract stuff
wavey0x Apr 6, 2023
7aaf662
chore: print token
wavey0x Apr 6, 2023
ddd9c35
feat: ypm
wavey0x May 15, 2023
8f0feff
chore: change to 10 minute timer
wavey0x May 24, 2023
df90288
chore: add vault exceptions list
wavey0x Jul 12, 2023
fa4e77e
rekt pool fix
wavey0x Oct 9, 2023
a2d1b18
rekt pool fix
wavey0x Oct 9, 2023
7f40f86
decimal float multiply
wavey0x Oct 10, 2023
c10b50a
decimal float multiply
wavey0x Oct 10, 2023
27c7318
decimal float multiply
wavey0x Oct 10, 2023
82203a0
float cast
wavey0x Oct 17, 2023
60e1efe
feat: asyncify and refactor
BobTheBuidler Feb 8, 2024
af207de
feat: asyncify and refactor more
BobTheBuidler Feb 8, 2024
c930be2
fix: broken import
BobTheBuidler Feb 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__
scripts/fees.py
.history
.hypothesis/
build/
Expand All @@ -21,3 +22,9 @@ generated
package*.json
hardhat.config.js
.idea
setup_db.py
fees2.py
scripts/tracking
scripts/update_crv.py
yvboost_fees.py
env
2 changes: 1 addition & 1 deletion brownie-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ autofetch_sources: true
compiler:
solc:
use_latest_patch:
- '0x514910771AF9Ca656af840dff83E8264EcF986CA'
- '0x514910771AF9Ca656af840dff83E8264EcF986CA'
42 changes: 42 additions & 0 deletions contracts/interfaces/yearn/IV2Registry.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

interface IV2Registry {
function wrappedVaults(address _vault) external view returns (address);

function isDelegatedVault(address _vault) external view returns (bool);

// Vaults getters
function getVault(uint256 index) external view returns (address vault);

function getVaults() external view returns (address[] memory);

function numTokens() external view returns (uint256 _numTokens);

function tokens(uint256 _index) external view returns (address _token);

function vaults(address _token, uint256 _index) external view returns (address _vault);

function getVaultInfo(address _vault)
external
view
returns (
address controller,
address token,
address strategy,
bool isWrapped,
bool isDelegated
);

function getVaultsInfo()
external
view
returns (
address[] memory controllerArray,
address[] memory tokenArray,
address[] memory strategyArray,
bool[] memory isWrappedArray,
bool[] memory isDelegatedArray
);
}
7 changes: 7 additions & 0 deletions contracts/interfaces/yearn/IV2Vault.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

interface IV2Vault {
function withdrawalQueue(uint256 _index) external view returns (address _strategy);
}
Loading