You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/interfaces/IBitrielFarmer.sol
+6-18Lines changed: 6 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -45,14 +45,14 @@ interface IBitrielFarmer is IERC721Receiver, IMulticall {
45
45
/// @return totalYieldUnclaimed The amount of yield (reward token) not yet claimed by users
46
46
/// @return totalSecondsClaimedX128 Total liquidity-seconds claimed, represented as a UQ32.128
47
47
/// @return numberOfStakes The count of deposits that are currently staked for the yield farming incentive
48
-
/// @return lastYieldBlock Last block number that BTRs distribution occurs
48
+
// /// @return lastYieldBlock Last block number that BTRs distribution occurs
49
49
// /// @return accBTRPerShare Accumulated BTRs per share, times 1e12
50
50
function farms(bytes32farmId) externalview
51
51
returns (
52
52
uint256totalYieldUnclaimed,
53
53
uint160totalSecondsClaimedX128,
54
-
uint96numberOfStakes,
55
-
uint256lastYieldBlock
54
+
uint96numberOfStakes
55
+
// uint256 lastYieldBlock
56
56
// uint256 accBTRPerShare
57
57
);
58
58
@@ -74,7 +74,7 @@ interface IBitrielFarmer is IERC721Receiver, IMulticall {
74
74
/// @param farmId The ID of the yield farming incentive for which the token is staked
75
75
/// @return secondsPerLiquidityInsideInitialX128 secondsPerLiquidity represented as a UQ32.128
76
76
/// @return liquidity The amount of liquidity in the NFT as of the last time the rewards were computed
77
-
function stakes(bytes32farmId, uint256tokenId) externalview
77
+
function stakes(uint256tokenId, bytes32farmId) externalview
78
78
returns (
79
79
uint160secondsPerLiquidityInsideInitialX128,
80
80
uint128liquidity
@@ -130,19 +130,6 @@ interface IBitrielFarmer is IERC721Receiver, IMulticall {
130
130
/// @return yieldHarvested The amount of yield harvested
131
131
function harvest(addressto, uint256yieldRequested) externalreturns (uint256yieldHarvested);
132
132
133
-
/// @notice Withdraw a BitrielSwap LP token `tokenId` and Transfers `amountRequested` of accrued BTRs yield (reward tokens) from the contract to the recipient `to`
134
-
/// @param to The address where harvest yield will be sent to
135
-
/// @param tokenId The unique identifier of an BitrielSwap liquidity NFT token
136
-
/// @param amountRequested The amount of yield to harvest. Claims entire yield amount if set to 0.
137
-
/// @param data An optional data array that will be passed along to the `to` address via the NFT safeTransferFrom
138
-
/// @return yieldHarvested The amount of yield harvested
139
-
function withdrawAndHarvest(
140
-
addressto,
141
-
uint256tokenId,
142
-
uint256amountRequested,
143
-
bytescalldatadata
144
-
) externalreturns (uint256yieldHarvested);
145
-
146
133
/// @notice Calculates the yield (reward) amount that will be received for the given stake
147
134
/// @param key The key of the yield farming incentive
148
135
/// @param tokenId The ID of the token
@@ -158,7 +145,8 @@ interface IBitrielFarmer is IERC721Receiver, IMulticall {
158
145
159
146
/// @notice Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
160
147
/// @param params The params necessary to migrate v2 liquidity, encoded as `MigrateParams` in calldata
161
-
function migrate(IMigrator.MigrateParams calldataparams) external;
148
+
/// @param data An optional data array that will be passed along to the `to` address via the NFT safeTransferFrom
149
+
function migrate(IMigrator.MigrateParams calldataparams, bytescalldatadata) external;
162
150
163
151
/// @notice Event emitted when a yield farming incentive has been created
0 commit comments