Wrapped SD Token
Last updated
Last updated
WrappedSDToken
wraps rebasing liquid staking tokens (such as stLINK) with a normal ERC20 token.
All standard ERC20 functions are implemented for WrappedSDToken
Returns the underlying staking receipt token that this contract wraps
Name | Type | Description |
---|---|---|
Returns the amount of wrapped tokens that corresponds an amount of unwrapped tokens
Name | Type | Description |
---|---|---|
Returns the amount of unwrapped tokens that corresponds to an amount of wrapped tokens
ERC677 implementation that proxies wrapping
Wraps tokens
Unwraps tokens
Transfers tokens to an address and calls onTokenTransfer
with additional data if the recipient is a contract
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
sdToken
address
Address of staking receipt token
_amount
uint256
Amount of unwrapped tokens
wrappedAmount
uint256
Amount of corresponding wrapped tokens
_amount
uint256
Amount of wrapped tokens
unwrappedAmount
uint256
Corresponding amount of unwrapped tokens
_sender
address
Sender of the token transfer
_value
uint256
Value of the token transfer
bytes
_amount
uint256
Amount of unwrapped tokens to wrap
_amount
uint256
Amount of wrapped tokens to unwrap
_to
address
Address to send the tokens to
_value
uint256
Value of token transfer
_data
bytes
Calldata included in the transfer