> For the complete documentation index, see [llms.txt](https://docs.ariaprotocol.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ariaprotocol.xyz/technical-docs/contract-docs/iprwa/staking/stakediprwa.md).

# StakedIPRWA

**Inherits:** ERC20Upgradeable, ERC20PermitUpgradeable, AccessControlUpgradeable, UUPSUpgradeable

**Author:** Aria Protocol

ERC20 contract representing liquid staked IPRWA tokens.

## State Variables

### STAKED\_IPRWA\_MINTER\_BURNER\_ROLE

CONSTANTS

```solidity
bytes32 public constant STAKED_IPRWA_MINTER_BURNER_ROLE =
    0x61422bb1aed0fd47fe58f64cad18f106f0dbc262decd5fd435187cb36ab5a827;
```

## Functions

### constructor

CONSTRUCTOR

**Note:** oz-upgrades-unsafe-allow: constructor

```solidity
constructor();
```

### initialize

INITIALIZER

```solidity
function initialize(string memory _name, string memory _symbol, address _owner) external initializer;
```

### mint

MINT/BURN FUNCTIONS

Mints tokens to the receiver

*Only callable by an address that has the STAKED\_IPRWA\_MINTER\_BURNER\_ROLE role*

```solidity
function mint(address _receiver, uint256 _amount) external onlyRole(STAKED_IPRWA_MINTER_BURNER_ROLE);
```

**Parameters**

| Name        | Type      | Description                          |
| ----------- | --------- | ------------------------------------ |
| `_receiver` | `address` | Address of user receiving the tokens |
| `_amount`   | `uint256` | Number of tokens being minted        |

### burn

Burns tokens owned by a user

*Only callable by an address that has the STAKED\_IPRWA\_MINTER\_BURNER\_ROLE role*

```solidity
function burn(address _from, uint256 _amount) external onlyRole(STAKED_IPRWA_MINTER_BURNER_ROLE);
```

**Parameters**

| Name      | Type      | Description                                   |
| --------- | --------- | --------------------------------------------- |
| `_from`   | `address` | Address of user whose tokens are being burned |
| `_amount` | `uint256` | Number of tokens being burned                 |

### \_authorizeUpgrade

ADMIN FUNCTIONS

```solidity
function _authorizeUpgrade(address newImplementation) internal virtual override onlyRole(DEFAULT_ADMIN_ROLE);
```

## Events

### StakedIPRWAMinted

EVENTS

Event emitted when Staked IPRWA tokens are minted

```solidity
event StakedIPRWAMinted(address indexed _receiver, uint256 _amount);
```

### StakedIPRWABurned

Event emitted when Staked IPRWA tokens are burned

```solidity
event StakedIPRWABurned(address indexed _from, uint256 _amount);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ariaprotocol.xyz/technical-docs/contract-docs/iprwa/staking/stakediprwa.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
