Open JakeHartnell opened 1 year ago
:exclamation: No coverage uploaded for pull request base (
development@0367c84
). Click here to learn what that means. Patch coverage: 88.79% of modified lines in pull request are covered. Report is 5 commits behind head on development.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Contract | Op Name | Gas Used | Old Gas Used | Gas Diff | File |
---|---|---|---|---|---|
dao_dao_core | Store__Store | 6297548 | 6180873 | +1.8877% | ci/integration-tests/src/helpers/chain.rs:98 |
cw_vesting | Store__Store | 4292883 | 4237984 | +1.2954% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_pre_propose_single | Store__Store | 4279324 | 4168525 | +2.6580% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_proposal_single | Store__Store | 6789079 | 6672533 | +1.7467% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_voting_cw721_staked | Instantiate__instantiate_dao_voting_cw721_staked | 180303 | 178255 | +1.1489% | ci/integration-tests/src/tests/dao_voting_cw721_staked_test.rs:49 |
dao_voting_cw721_staked | Store__Store | 4648095 | 3348121 | +38.8270% | ci/integration-tests/src/helpers/chain.rs:98 |
cw20_stake | Store__Store | 4039409 | 3958328 | +2.0484% | ci/integration-tests/src/helpers/chain.rs:98 |
cw20_stake_external_rewards | Store__Store | 3389630 | 3350513 | +1.1675% | ci/integration-tests/src/helpers/chain.rs:98 |
cw20_stake_reward_distributor | Store__Store | 2897606 | 2841017 | +1.9919% | ci/integration-tests/src/helpers/chain.rs:98 |
cw_admin_factory | Store__Store | 2071755 | 2019807 | +2.5719% | ci/integration-tests/src/helpers/chain.rs:98 |
cw_fund_distributor | Store__Store | 3433089 | 3362993 | +2.0843% | ci/integration-tests/src/helpers/chain.rs:98 |
cw_payroll_factory | Store__Store | 3756022 | 3698198 | +1.5636% | ci/integration-tests/src/helpers/chain.rs:98 |
cw_token_swap | Store__Store | 2429112 | 2382897 | +1.9394% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_migrator | Store__Store | 5202909 | 5126651 | +1.4875% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_pre_propose_approval_single | Store__Store | 5040906 | 4924660 | +2.3605% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_pre_propose_approver | Store__Store | 3765057 | 3675123 | +2.4471% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_pre_propose_multiple | Store__Store | 4358416 | 4246824 | +2.6277% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_proposal_condorcet | Store__Store | 4712211 | 4625956 | +1.8646% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_proposal_multiple | Store__Store | 6611576 | 6470617 | +2.1784% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_voting_cw20_staked | Store__Store | 3665035 | 3622525 | +1.1735% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_voting_cw4 | Store__Store | 2665777 | 2686291 | -0.7637% | ci/integration-tests/src/helpers/chain.rs:98 |
dao_voting_native_staked | Store__Store | 3032182 | 2989815 | +1.4170% | ci/integration-tests/src/helpers/chain.rs:98 |
@JakeHartnell, regarding ExecuteMsg::PayOut
: https://github.com/DA0-DA0/dao-contracts/blob/bounties/contracts/external/cw-bounties/src/msg.rs#L30
/// Claims a bounty (only owner)
PayOut {
/// Bounty id to claim
id: u64,
/// Recipient address where funds from bounty are claimed
recipient: String,
},
We could add amount: Option<Uint128>
for allowing partial payout - if none is provided then it is a full payout. This way it allows use cases like:
For Close
and PayOut
maybe there should be an optional memo. So owner can add reason or other notes.
@JakeHartnell, regarding
ExecuteMsg::PayOut
: https://github.com/DA0-DA0/dao-contracts/blob/bounties/contracts/external/cw-bounties/src/msg.rs#L30/// Claims a bounty (only owner) PayOut { /// Bounty id to claim id: u64, /// Recipient address where funds from bounty are claimed recipient: String, },
We could add
amount: Option<Uint128>
for allowing partial payout - if none is provided then it is a full payout. This way it allows use cases like:
- partial pay out depending on defined/reached milestones
- awarding multiple peeps contributing to same bounty
Ofc, this is not needed, since owner can create multiple bounties for achieving same goal. But this way, owner can decide which way is appropiate for bounty ((one bounty with partial payout or multiple bounties with each single payout). This change shouldn't be a big deal and keeps contract still simple.
@JakeHartnell, regarding
ExecuteMsg::PayOut
: https://github.com/DA0-DA0/dao-contracts/blob/bounties/contracts/external/cw-bounties/src/msg.rs#L30/// Claims a bounty (only owner) PayOut { /// Bounty id to claim id: u64, /// Recipient address where funds from bounty are claimed recipient: String, },
We could add
amount: Option<Uint128>
for allowing partial payout - if none is provided then it is a full payout. This way it allows use cases like:
- partial pay out depending on defined/reached milestones
- awarding multiple peeps contributing to same bounty
Nevermind. Figured out partial payment is way too complicated. Like when updating on partial payouts, it will affect BountyStatus when updated amount is equal to partial payout -> Bounty is closed otherwise it keeps open, Bounty need another prop claimed
for updated payments made so far. I was almost done implementing this including tests - but trashed it since contract would be too complicated without big value.
@JakeHartnell, found another bug when updating bounty with lower amount. Like bounty is 100 Juno, update to 50 Juno, then owner gets 50 Juno back. This works. But if owner accidentally sends 50 Juno, 100 Juno should be send back - not just 50.
Fix it in PR 730. Also added more tests extensively and checking Bounty
state on each test.
@JakeHartnell, found another bug when updating bounty with lower amount. Like bounty is 100 Juno, update to 50 Juno, then owner gets 50 Juno back. This works. But if owner accidentally sends 50 Juno, 100 Juno should be send back - not just 50.
Fix it in PR 730. Also added more tests extensively and checking
Bounty
state on each test.
Check here: https://github.com/DA0-DA0/dao-contracts/pull/730
Attention: 50 lines
in your changes are missing coverage. Please review.
Comparison is base (
db42d45
) 96.25% compared to head (5f90c8b
) 96.21%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Will merge and ship this after we're done with the veto stuff. :heart:
Attention: Patch coverage is 94.26523%
with 48 lines
in your changes are missing coverage. Please review.
Project coverage is 96.27%. Comparing base (
d59c282
) to head (793085a
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Closes #714