-
Notifications
You must be signed in to change notification settings - Fork 1
Brian/manager audit fixes #31
Conversation
…alancing set state. Change proposalTimestamp to lastProposalTimestamp. Comments and small logic updates.
…ror messages in flexible manager library. Added tests for non-default states to make sure they revert.
… to create new collateral sets.
…be called once when rebalancingSetTokenAddress is guaranteed to be zero.
package.json
Outdated
"transpile": "tsc", | ||
"truffle-test-scenarios": "truffle test `find transpiled/test/scenarios -name '*.spec.js'`", | ||
"truffle-test-contracts": "truffle test `find transpiled/test/contracts -name '*.spec.js'`", | ||
"truffle-test-contracts": "truffle test `find transpiled/test/contracts -name 'ethTwentyDayMACOManager.spec.js'`", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix this
|
||
address public usdcAddress; | ||
address public ethAddress; | ||
address public wethAddress; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given our asset roll-out strategy, we may want to consider generalizing the weth and usdc addresses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's something I've considered. We could do wethAddress
-> riskAssetAddress
, usdcAddress
-> stableAssetAddress
, then get the decimals from both of those in the constructor and that should be all we need. Perhaps a require
to make sure the stableCollateral component matches stableAssetAddress
and likewise for the risk asset?
No description provided.