Skip to content

Commit

Permalink
staker param
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Jan 17, 2025
1 parent d9ae860 commit bc2cd44
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/sdk-xyo-typechain",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion packages/open-zeppelin-typechain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/open-zeppelin-typechain",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion packages/solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/solidity",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ contract AddressStaking is
}

function getStake(
address staker,
uint256 slot
) public view returns (AddressStakingLibrary.Stake memory) {
return _getStake(slot);
return _getStake(staker, slot);
}
}
3 changes: 2 additions & 1 deletion packages/solidity/src/xyo-chain/AddressStaking/Internal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ abstract contract AddressStakingInternal is
}

function _getStake(
address staker,
uint256 slot
) internal view returns (AddressStakingLibrary.Stake memory) {
return _accountStakes[msg.sender][slot];
return _accountStakes[staker][slot];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface IAddressStakingFunctions {
function withdrawStake(uint256 slot) external returns (bool);

function getStake(
address staker,
uint256 slot
) external view returns (AddressStakingLibrary.Stake memory);
}
2 changes: 1 addition & 1 deletion packages/typechain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/typechain",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion packages/uniswap-solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/uniswap-solidity",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion packages/uniswap-typechain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/uniswap-typechain",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion packages/world-solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/world-solidity",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion packages/world-typechain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/world-typechain",
"version": "3.4.0",
"version": "3.4.1",
"bugs": {
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues",
"email": "[email protected]"
Expand Down

0 comments on commit bc2cd44

Please sign in to comment.