You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently ~8kB over the limit1. As part of this, let's also bring back the size check in CI which as removed in #46 (comment)
To fix we probably want to:
extend Comet to redefine updateBasePrincipal, note that this function will need to call internal functions that we do not have the space to include in Comet -- namely FlexVotingClient._checkpointRawBalanceOf! Need to figure out how to do this (e.g. maybe make the function external but with a modifier that only allows the Comet instance to call it?)
create a new Comet constructor that stores the governor address
extend Comet to add the storage vars in FlexVotingClient. This might be a little tricky because some of them reference types in libraries like OZ's Checkpoints and we cannot afford to import them:
mapping(uint256=>mapping(address=>bool)) private proposalVotersHasVoted;
/// @notice Map proposalId to vote totals expressed on this proposal.mapping(uint256=> ProposalVote) public proposalVotes;
/// @notice Mapping from address to stored (not rebased) balance checkpoint history.mapping(address=> Checkpoints.History) private balanceCheckpoints;
/// @notice History of total stored (not rebased) balances.
Checkpoints.History internal totalDepositCheckpoints;
It's currently ~8kB over the limit1. As part of this, let's also bring back the size check in CI which as removed in #46 (comment)
To fix we probably want to:
updateBasePrincipal
, note that this function will need to call internal functions that we do not have the space to include in Comet -- namelyFlexVotingClient._checkpointRawBalanceOf
! Need to figure out how to do this (e.g. maybe make the function external but with a modifier that only allows the Comet instance to call it?)FlexVotingClient
. This might be a little tricky because some of them reference types in libraries like OZ's Checkpoints and we cannot afford to import them:CometExt
with the remaining logic we needFootnotes
↩
The text was updated successfully, but these errors were encountered: