Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
vzotova committed Jul 23, 2023
1 parent e596bf1 commit eacb9b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/test/TACoApplicationTestSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;


import "../contracts/TACoApplication.sol";
import "../threshold/IApplication.sol";
import "@threshold/contracts/staking/IApplication.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";


Expand Down
4 changes: 2 additions & 2 deletions tests/application/test_reward.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_push_reward(accounts, token, threshold_staking, taco_application, chain
assert taco_application.lastTimeRewardApplicable() == timestamp
assert taco_application.rewardPerTokenStored() == 0
assert taco_application.rewardPerToken() == 0
assert taco_application.availableRewardsed(staking_provider_1) == 0
assert taco_application.availableRewards(staking_provider_1) == 0

events = taco_application.RewardAdded.from_receipt(tx)
assert len(events) == 1
Expand Down Expand Up @@ -426,7 +426,7 @@ def test_withdraw(accounts, token, threshold_staking, taco_application, chain):
# Withdraw
chain.pending_timestamp += reward_duration // 2
assert taco_application.availableRewards(staking_provider) == new_earned
tx = taco_application.withdraw(staking_provider, sender=beneficiary)
tx = taco_application.withdrawRewards(staking_provider, sender=beneficiary)
new_reward_per_token = taco_application.rewardPerToken()
assert taco_application.rewardPerTokenStored() == new_reward_per_token
assert taco_application.stakingProviderInfo(staking_provider)[REWARDS_SLOT] == 0
Expand Down

0 comments on commit eacb9b5

Please sign in to comment.