Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions contracts/IStaking.sol

This file was deleted.

18 changes: 18 additions & 0 deletions contracts/ITokenGeyser.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.24;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
* @title Geyser staking interface
*/
interface ITokenGeyser {
function stake(uint256 amount) external;
function unstake(uint256 amount) external returns (uint256);
function totalStakedBy(address addr) external view returns (uint256);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the name change, but flagging that it would mean changes for the frontend. Assuming it would need to be smart enough to know which contract version it's talking to on the backend.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I think for the new frontend we shouldn't expect backward compatibility with OG v1

function totalStaked() external view returns (uint256);
function totalLocked() external view returns (uint256);
function totalUnlocked() external view returns (uint256);
function stakingToken() external view returns (IERC20);
function distributionToken() external view returns (IERC20);
}
15 changes: 15 additions & 0 deletions contracts/ITokenPool.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.24;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
* @title Token pool interface
*/
interface ITokenPool {
function init(IERC20 token_) external;
function token() external view returns (IERC20);
function balance() external view returns (uint256);
function transfer(address to, uint256 value) external;
function rescueFunds(address tokenToRescue, address to, uint256 amount) external;
}
Loading