Skip to content

Commit

Permalink
Phoenix: removes forgotten dbg! and updates CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gangov committed Aug 31, 2023
1 parent e842dde commit e86b7b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to
- Pair: Deployment of Stake contract during initialization ([#98])
- Decimal: Implement `from_atomics` and `to_string` ([#115])
- Curve: Implement `end` helper ([#115])
- Phoenix: Helper library for commonly used functions, structs, etc... ([#116])

## Changed

Expand All @@ -37,6 +38,8 @@ and this project adheres to
[#100]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/100
[#108]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/108
[#115]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/115
[#116]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/116


## [0.5.0] - 2023-08-04

Expand Down
5 changes: 2 additions & 3 deletions contracts/stake/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,8 @@ impl StakingTrait for Staking {
// Calculate how much we have received since the last time Distributed was called,
// including only the reward config amount that is eligible for distribution.
// This is the amount we will distribute to all mem
let amount = dbg!(
undistributed_rewards - withdrawable - dbg!(curve.value(env.ledger().timestamp()))
);
let amount =
undistributed_rewards - withdrawable - curve.value(env.ledger().timestamp());

if amount == 0 {
continue;
Expand Down
2 changes: 1 addition & 1 deletion contracts/stake/src/distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub fn withdrawable_rewards(
) -> Result<u128, ContractError> {
let ppw = distribution.shares_per_point;

let points = dbg!(get_stakes(env, owner)?.total_stake);
let points = get_stakes(env, owner)?.total_stake;
let points = (ppw * points) as i128;

let correction = adjustment.shared_correction;
Expand Down

0 comments on commit e86b7b4

Please sign in to comment.