Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
2010157
Start of VaultTwo
DanielVF Mar 27, 2023
6b3dd90
No vault Two
DanielVF Mar 30, 2023
ced0ee7
Extract units conversion to method
DanielVF Mar 31, 2023
53f34ab
Exchange rate supporting Vault
DanielVF Mar 31, 2023
f5112d0
Merge remote-tracking branch 'origin/master' into DanielVF/oeth
sparrowDom Apr 4, 2023
931c20d
Remove unneeded memory array
DanielVF Apr 4, 2023
4a459f4
Change to using enums for exchange rate types
DanielVF Apr 4, 2023
98b9076
Merge branch 'DanielVF/oeth' of github.com:OriginProtocol/origin-doll…
DanielVF Apr 4, 2023
7cb179f
Documentation on _toUnits
DanielVF Apr 4, 2023
49c5980
OETH - Allow initialize time control of OUSD resolution (#1273)
DanielVF Apr 4, 2023
02f04ae
Correct mint / redeem with oracle
DanielVF Apr 4, 2023
f42e4ea
merge
DanielVF Apr 4, 2023
a901de0
add the main deploy file for OETH
sparrowDom Apr 4, 2023
ead03b5
make it possible for the 5/8 multisig to be the governor of deployments
sparrowDom Apr 5, 2023
e61294a
prettier
sparrowDom Apr 5, 2023
f6f289a
Gas efficiency
DanielVF Apr 5, 2023
43d6b4d
Merge branch 'DanielVF/oeth' of github.com:OriginProtocol/origin-doll…
DanielVF Apr 5, 2023
dc0b390
add frax eth deployment
sparrowDom Apr 5, 2023
e1335b8
basic sfraxETH strategy implementation
sparrowDom Apr 5, 2023
d0b13ad
add brownie env to git ignore
sparrowDom Apr 5, 2023
534e8a7
prettier
sparrowDom Apr 5, 2023
ce311ae
Remove unused code
DanielVF Apr 5, 2023
d972dc6
add the infrastructure for fork tests
sparrowDom Apr 5, 2023
8355b24
hardcode oracle price
sparrowDom Apr 5, 2023
c62e66e
finish up the fraxETH strategy fork tests and fix a bug
sparrowDom Apr 7, 2023
7d34b28
lint and some minor fixes
sparrowDom Apr 7, 2023
56aed69
deployment file fix
sparrowDom Apr 7, 2023
03612ec
Slither db update for false positives
DanielVF Apr 7, 2023
6c490c6
add a test that checks we can withdraw what the checkBalance returns
sparrowDom Apr 9, 2023
08f4dd7
minor fix
sparrowDom Apr 9, 2023
8f8db30
Merge branch 'master' into DanielVF/oeth
DanielVF Apr 10, 2023
90ea59c
Correct license for new contracts
DanielVF Apr 10, 2023
b3c2d13
Deploy is ready
DanielVF Apr 10, 2023
4d9df7c
Add redeem fee variable
DanielVF Apr 10, 2023
c2ed29c
add slither exceptions
sparrowDom Apr 11, 2023
302f83d
fix tests (#1317)
sparrowDom Apr 12, 2023
5e51b99
OETH - Oracle router changes (#1314)
sparrowDom Apr 12, 2023
ddd33db
fix oracle tests
sparrowDom Apr 12, 2023
e14c126
fix tests
sparrowDom Apr 12, 2023
45fdf7b
more fixes
sparrowDom Apr 12, 2023
aac90cc
fix slither
sparrowDom Apr 12, 2023
4afcafd
ETH / sfrxeth zapper (#1316)
DanielVF Apr 13, 2023
1cde1b6
move decimals cache to asset struct (#1319)
sparrowDom Apr 13, 2023
9b9577a
WOETH deployment (#1320)
sparrowDom Apr 13, 2023
7454bc0
Let’s just call them decimals
DanielVF Apr 13, 2023
0a0d0a2
add decimalsCache to existing Vault
sparrowDom Apr 13, 2023
159bc61
prettier
sparrowDom Apr 13, 2023
80a4d1e
deployment numbering
sparrowDom Apr 13, 2023
1e65b31
fork test fix
sparrowDom Apr 13, 2023
e6ec811
run decimals cache only in forked environment
sparrowDom Apr 13, 2023
9fcb8ba
prettier
sparrowDom Apr 13, 2023
893f4cf
Remove unused buyback trigger
DanielVF Apr 13, 2023
6afa1c3
rETH support
DanielVF Apr 13, 2023
abde155
support oracles reporting feeds with different decimal format (#1321)
sparrowDom Apr 14, 2023
6253520
Add support for stETH
DanielVF Apr 14, 2023
aeba0b5
Use default strat for frxETH
DanielVF Apr 14, 2023
2a33eca
harvester & unit tests (#1331)
sparrowDom Apr 16, 2023
d789eb6
add some addresses
sparrowDom Apr 16, 2023
14a64fc
fix bug
sparrowDom Apr 18, 2023
58b9b84
Deploy 53 OETH and 54 WOETH (#1334)
sparrowDom Apr 20, 2023
0012da4
Merge master
DanielVF Apr 26, 2023
d6a628b
Prettier
DanielVF Apr 26, 2023
dbc6569
Merge cleanup
DanielVF Apr 26, 2023
933998c
Zapper cleanup
DanielVF Apr 26, 2023
8af47e5
remove console.log
DanielVF Apr 26, 2023
3e4b672
Zapper: Better event name
DanielVF Apr 26, 2023
fef7507
Add slither excludes to triage file
DanielVF Apr 26, 2023
96761ed
Remove inline slither comments and add docstrings
DanielVF Apr 26, 2023
629a9aa
cleaner wording
DanielVF Apr 26, 2023
976ee49
Explicity access levels on vars
DanielVF Apr 26, 2023
1856d06
Zapper redeploy
DanielVF Apr 26, 2023
2e3f530
Lint: cleanup extra variable
DanielVF Apr 26, 2023
c396e73
Deploy 56 - OUSD Zapper Redeploy (#1364)
DanielVF Apr 26, 2023
2418f76
Merge branch 'DanielVF/oeth' of github.com:OriginProtocol/origin-doll…
DanielVF Apr 27, 2023
ef7bf5e
Don't show zapper no return checks
DanielVF Apr 27, 2023
508921b
Move vault check to after redeem is complete.
DanielVF Apr 28, 2023
0f843ba
Happy Lint, happy Pretttier
DanielVF Apr 28, 2023
5fc5936
mainnet deploy 58 (#1435)
DanielVF May 11, 2023
6ccd7ce
Merge remote-tracking branch 'origin/master' into DanielVF/oeth
sparrowDom May 11, 2023
f126697
set unit test rebasingCreditsPerToken to 1e27 and fix vault value che…
sparrowDom May 11, 2023
a534d02
apply changes on master branch
sparrowDom May 12, 2023
4401495
Merge branch 'master' into DanielVF/oeth
sparrowDom May 12, 2023
19c0da7
fix unit test and prettier
sparrowDom May 12, 2023
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ website/network.json
/playground/public/build/

todo.txt
brownie/env-brownie/

crytic-export

Expand Down
108 changes: 108 additions & 0 deletions brownie/abi/OETHVaultValueChecker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_vault",
"type": "address"
},
{
"internalType": "address",
"name": "_ousd",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "int256",
"name": "expectedProfit",
"type": "int256"
},
{
"internalType": "int256",
"name": "profitVariance",
"type": "int256"
},
{
"internalType": "int256",
"name": "expectedVaultChange",
"type": "int256"
},
{
"internalType": "int256",
"name": "vaultChangeVariance",
"type": "int256"
}
],
"name": "checkDelta",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "ousd",
"outputs": [
{
"internalType": "contract IOUSD",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "snapshots",
"outputs": [
{
"internalType": "uint256",
"name": "vaultValue",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalSupply",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "takeSnapshot",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "vault",
"outputs": [
{
"internalType": "contract IVault",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
149 changes: 149 additions & 0 deletions brownie/abi/oethzapper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_oeth",
"type": "address"
},
{
"internalType": "address",
"name": "_vault",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "minter",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Zap",
"type": "event"
},
{
"inputs": [],
"name": "deposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minOETH",
"type": "uint256"
}
],
"name": "depositSFRXETH",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "frxeth",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "oeth",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "sfrxeth",
"outputs": [
{
"internalType": "contract ISfrxETH",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "vault",
"outputs": [
{
"internalType": "contract IVault",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "weth",
"outputs": [
{
"internalType": "contract IWETH9",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
Loading