Skip to content

Commit

Permalink
remove PrtStakingPool
Browse files Browse the repository at this point in the history
  • Loading branch information
pblivin0x committed Jun 19, 2024
1 parent ca1a5e8 commit 0996cfa
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 1,906 deletions.
7 changes: 0 additions & 7 deletions contracts/interfaces/IPrtStakingPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
pragma solidity ^0.6.10;

interface IPrtStakingPool {
function stake(uint256 _amount) external;
function unstake(uint256 _amount) external;
function accrue(uint256 _amount) external;
function claim() external;
function setFeeSplitExtension(address _feeSplitExtension) external;
function getCurrentId() external view returns (uint256);
function getPendingRewards(address _account) external view returns (uint256);
function getSnapshotRewards(uint256 _snapshotId, address _account) external view returns (uint256);
function feeSplitExtension() external view returns (address);
function prt() external view returns (address);
}
39 changes: 39 additions & 0 deletions contracts/mocks/PrtStakingPoolMock.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
Copyright 2024 Index Cooperative
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-License-Identifier: Apache License, Version 2.0
*/

pragma solidity ^0.6.10;
pragma experimental ABIEncoderV2;

import { IPrt } from "../interfaces/IPrt.sol";
import { ISetToken } from "../interfaces/ISetToken.sol";

contract PrtStakingPoolMock {
ISetToken public immutable setToken;
IPrt public immutable prt;
address public feeSplitExtension;

constructor(ISetToken _setToken, IPrt _prt, address _feeSplitExtension) public {
prt = _prt;
setToken = _setToken;
feeSplitExtension = _feeSplitExtension;
}

function accrue(uint256 _amount) external {
setToken.transferFrom(msg.sender, address(this), _amount);
}
}
Loading

0 comments on commit 0996cfa

Please sign in to comment.