> For the complete documentation index, see [llms.txt](https://docs.algebra.finance/algebra-integral-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algebra.finance/algebra-integral-documentation/algebra-v1-technical-reference/contracts/api-reference-v1.0/v1.0-tokenomics/algebratokenstaking.md).

# AlgebraTokenStaking

## Modifiers

### onlyOwner

## Events

### Entered

`Entered(address,uint256,uint256)`

| Name        | Type    | Description |
| ----------- | ------- | ----------- |
| staker      | address |             |
| ALGBAmount  | uint256 |             |
| xALGBAmount | uint256 |             |

### Left

`Left(address,uint256,uint256)`

| Name        | Type    | Description |
| ----------- | ------- | ----------- |
| staker      | address |             |
| xALGBAmount | uint256 |             |
| ALGBAmount  | uint256 |             |

## Variables

### uint256 freezeTime

### address owner

### contract IERC20Minimal ALGB

## Functions

### constructor

ERC20

`constructor(contract IERC20Minimal)` public

| Name   | Type                   | Description |
| ------ | ---------------------- | ----------- |
| \_ALGB | contract IERC20Minimal |             |

### enter

`enter(uint256)` external

| Name     | Type    | Description |
| -------- | ------- | ----------- |
| \_amount | uint256 |             |

### leave

`leave(uint256)` external

| Name    | Type    | Description |
| ------- | ------- | ----------- |
| \_share | uint256 |             |

### currentBalance

`currentBalance(uint256)` view external

| Name     | Type    | Description |
| -------- | ------- | ----------- |
| \_amount | uint256 |             |

**Returns:**

| Name | Type    | Description |
| ---- | ------- | ----------- |
| \[0] | uint256 |             |

### setFreezeTime

onlyOwner

`setFreezeTime(uint256)` external

| Name         | Type    | Description |
| ------------ | ------- | ----------- |
| \_freezeTime | uint256 |             |

### transferOwner

onlyOwner

`transferOwner(address)` external

| Name       | Type    | Description |
| ---------- | ------- | ----------- |
| \_newOwner | address |             |

***
