yam-finance / proposals Goto Github PK
View Code? Open in Web Editor NEWYam On Chain Proposals
License: Other
Yam On Chain Proposals
License: Other
proposals/contracts/2022/02/Proposal23.sol
Line 150 in 169d1fa
What is this?
proposals/contracts/2022/02/Proposal23.sol
Line 152 in 169d1fa
VDM submitted a compensation request and should be included in this proposal
https://forum.yam.finance/t/2022-03-01-vdm-contribution-compensation-request/1627
proposals/contracts/2022/02/Proposal23.sol
Line 178 in 169d1fa
change name to "nushi"
proposals/contracts/2022/10/Proposal33.t.sol
Line 114 in d6c5545
When deploying the temporary redemption contract, redemption time only needs to be 90 days because the 7 days is hard coded into the redemption contract.
proposals/contracts/2022/10/Proposal33.sol
Line 128 in e2fbd0f
There is an issue with the call:
IYVault(address(yUSDC)).withdraw(type(uint256).max);
proposals/contracts/2022/10/Proposal33.t.sol
Line 191 in d6c5545
// User should have tokens after redemption
assertTrue(IERC20(WETH).balanceOf(address(this)) < 7000000000000000000);
If using the < operator, 0 aka no balance is included in the < 7000000000000000000
proposals/contracts/2022/10/Proposal33.t.sol
Line 188 in d6c5545
├╴call 0x185a4dc360CE69bDCceE33b3784B0282f7961aea::redeem(Proposaltest@0xb4c79daB8f259C7Aee6E5b2Aa729821864227e84, 100000000000000000000000) (contracts/2022/10/Proposal33.t.sol:188)
│ ├╴call 0x0AaCfbeC6a24756c20D41914F2caba817C0d8521::transferFrom(Proposaltest@0xb4c79daB8f259C7Aee6E5b2Aa729821864227e84, @0x185a4dc360CE69bDCceE33b3784B0282f7961aea, 100000000000000000000000) <no source map>
│ │ ├╴delegatecall 0x27C5736b49B89d4765d03734a0a51c461F09672d::transferFrom(Proposaltest@0xb4c79daB8f259C7Aee6E5b2Aa729821864227e84, @0x185a4dc360CE69bDCceE33b3784B0282f7961aea, 100000000000000000000000) <no source map>
│ │ │ ├╴Transfer(100000000000000000000000) <no source map>
│ │ │ └╴← (true)
│ │ └╴← (true)
│ ├╴call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2::balanceOf(@0x185a4dc360CE69bDCceE33b3784B0282f7961aea) <no source map>
│ │ └╴← (0)
│ └╴error Revert ("ZERO_BALANCE") <no source map>
└╴error Revert ("ZERO_BALANCE") (contracts/2022/10/Proposal33.t.sol:188)
All the contracts in the utils
folder are using the version v0.8.10
, with the recent edits taking place to adapt what we had from the older version, we need to add testing to the contracts used in this folder.
utils
proposals/contracts/2021/Proposal20.sol
Line 102 in 4f7eec8
As I reviewed the last proposal, I discovered that we underpaid VDM for the month of September. The snapshot proposal that was approved here: https://snapshot.org/#/yam.eth/proposal/QmTH6QZnNxrRGhMxyEbwiE7VFPCTz1TYGnDHRJghnvgMR9 was for future months. In that proposal, VDM was approved for move to half time with half pay for the month of October. In the last on chain proposal that Nate wrote, we paid VDM 42000/12
or $3500, when he should have been paid $7000 (84000/2) because that proposal was to pay for work done in the previous month.
In order to fix this now, we should pay VDM the 3500 USDC that we owe him for september, and then also the 3500 USDC we owe him for his part time work in October. We are then not paying him stables for November on, but keeping his stream open until we ratify his new compensation plan.
The onchain proposals are using an old solidity version, v0.5.15
. Moving forward we need to upgrade it and use v0.8.10
instead.
v0.8.10
proposals/contracts/2022/01/Proposal22.sol
Lines 202 to 209 in 82720e4
Please add closing of stream 93 (snake's stream) to this proposal.
proposals/contracts/2022/03/Proposal24.sol
Lines 22 to 28 in ef05f7b
proposals/contracts/2022/03/Proposal24.sol
Line 104 in ef05f7b
I may just have missed it, but I don't see anything in this function and it's definition that says what token gets paid out. Maybe not an issue but I figured I would ask.
Is the variable name spelled right in line 26 (uamount)?
Sablier.sol does not exist in this location in the github repo.
How did you come up with this amount?
proposals/contracts/2022/08/Proposal29.sol
Line 180 in add1bab
How does this work? There is no action in this function.
We need to add hardhat to support proposal contract development.
v0.8.10
When applying for this bounty, provide an anticipated date for completion of the work in your work plan! And please be descriptive, add documentation where its most likely needed in the code, and add any additional comments to your PR!
We need to add foundry to support proposal contract development.
v0.8.10
Payment is for WORK DONE not future work. Snake's pay rate for December was $28,800/year in stables. The number shown here is his new rate and goes into effect NEXT month.
Contract is missing withdraw / unwrap / send to redemption contract yvUSDC.
proposals/contracts/2021/Proposal20.sol
Line 96 in 4f7eec8
@ethedev have you had further conversations with Nate about this? Per the discussion where nate first announced that he would be stepping away he mentioned that we wanted to stop his stablecoin payments immediately. That was in early october, so would mean that if we follow that we wouldn't pay him in this proposal (covering october and november).
At the bottom of the proposal, (line 165) nates stream is closed. Are we fully parting ways or just stopping until things get re-negotiated?
Can you confirm the logic here:
This code moves all our USDC into this contract
proposals/contracts/2022/02/Proposal23.sol
Lines 135 to 138 in 169d1fa
This code moves all our yUSDC2 (the old version) into this contract
proposals/contracts/2022/02/Proposal23.sol
Lines 140 to 144 in 169d1fa
This code withdraws the yUSDC2 (old version) to USDC.
proposals/contracts/2022/02/Proposal23.sol
Line 145 in 169d1fa
This line then sends 100,000 USDC back to the treasury.
proposals/contracts/2022/02/Proposal23.sol
Line 150 in 169d1fa
The contract then pays people
This code then deposits all the remaining USDC into yvUSDC (the new version) and sends it back to the treasury.
proposals/contracts/2022/02/Proposal23.sol
Lines 184 to 186 in 169d1fa
This is how I understand the contract working. Please confirm if that is correct.
Either way, I have a few comments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.