LUSD

Ethereum ERC-20 Token

0x5f98805a4e8be255a32880fdec7f6728c6568ba0

Solidity v0.6.11+commit.5ef660b1

Fungible token following the ERC-20 standard.

🤖
Query this contract from your AI
Reference: lusd-eth 0x5f98805a4e8be255a32880fdec7f6728c6568ba0
Sample prompt: “Tell me the current state of lusd-eth”
No AI wired up yet? → mcp.smarts.md

Admin & Risk

Who can change the rules?

Detected mintable controls from the verified ABI.

Mintable

Overview

Read Functions
13
Write Functions
10
Events
6

Read Functions

Block #25,169,814 · just now
allowance(owner: address, spender: address) view
dev: Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.

Parameters

Name Type Description
owner address
spender address

Returns

Name Type Description
uint256
balanceOf(account: address) view
dev: Returns the amount of tokens owned by `account`.

Parameters

Name Type Description
account address

Returns

Name Type Description
uint256
borrowerOperationsAddress() view → 0x24179cd81c9e782a4096035f7ec97fb8b783e007

Returns

Name Type Description
address
decimals() view → 18

Returns

Name Type Description
uint8
domainSeparator() view → 0xf85dbb1e9a5845cbb7605972678082c839c02db2df0e2e2eb4977e9744bbcd89

Returns

Name Type Description
bytes32
name() view → LUSD Stablecoin

Returns

Name Type Description
string
nonces(owner: address) view
dev: Returns the current ERC2612 nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases `owner`'s nonce by one. This prevents a signature from being used multiple times. `owner` can limit the time a Permit is valid for by setting `deadline` to a value in the near future. The deadline argument can be set to uint(-1) to create Permits that effectively never expire.

Parameters

Name Type Description
owner address

Returns

Name Type Description
uint256
permitTypeHash() view → 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9

Returns

Name Type Description
bytes32
stabilityPoolAddress() view → 0x66017d22b0f8556afdd19fc67041899eb65a21bb

Returns

Name Type Description
address
symbol() view → LUSD

Returns

Name Type Description
string
totalSupply() view → 28,503,393.39 LUSD
dev: Returns the amount of tokens in existence.

Returns

Name Type Description
uint256
troveManagerAddress() view → 0xa39739ef8b0231dbfa0dcda07d7e29faabcf4bb2

Returns

Name Type Description
address
version() view → 1

Returns

Name Type Description
string

Write Functions

approve(spender: address, amount: uint256) nonpayable
dev: Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.

Parameters

Name Type Description
spender address
amount uint256

Returns

Name Type Description
bool
burn(_account: address, _amount: uint256) nonpayable

Parameters

Name Type Description
_account address
_amount uint256
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Parameters

Name Type Description
spender address
subtractedValue uint256

Returns

Name Type Description
bool
increaseAllowance(spender: address, addedValue: uint256) nonpayable

Parameters

Name Type Description
spender address
addedValue uint256

Returns

Name Type Description
bool
mint(_account: address, _amount: uint256) nonpayable

Parameters

Name Type Description
_account address
_amount uint256
permit(owner: address, spender: address, amount: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable
dev: Sets `amount` as the allowance of `spender` over `owner`'s tokens, given `owner`'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section].

Parameters

Name Type Description
owner address
spender address
amount uint256
deadline uint256
v uint8
r bytes32
s bytes32
returnFromPool(_poolAddress: address, _receiver: address, _amount: uint256) nonpayable

Parameters

Name Type Description
_poolAddress address
_receiver address
_amount uint256
sendToPool(_sender: address, _poolAddress: address, _amount: uint256) nonpayable

Parameters

Name Type Description
_sender address
_poolAddress address
_amount uint256
transfer(recipient: address, amount: uint256) nonpayable
dev: Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

Parameters

Name Type Description
recipient address
amount uint256

Returns

Name Type Description
bool
transferFrom(sender: address, recipient: address, amount: uint256) nonpayable
dev: Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

Parameters

Name Type Description
sender address
recipient address
amount uint256

Returns

Name Type Description
bool

Events

Approval(owner: address, spender: address, value: uint256)
Name Type Indexed Description
owner address
spender address
value uint256
BorrowerOperationsAddressChanged(_newBorrowerOperationsAddress: address)
Name Type Indexed Description
_newBorrowerOperationsAddress address
LUSDTokenBalanceUpdated(_user: address, _amount: uint256)
Name Type Indexed Description
_user address
_amount uint256
StabilityPoolAddressChanged(_newStabilityPoolAddress: address)
Name Type Indexed Description
_newStabilityPoolAddress address
Transfer(from: address, to: address, value: uint256)
Name Type Indexed Description
from address
to address
value uint256
TroveManagerAddressChanged(_troveManagerAddress: address)
Name Type Indexed Description
_troveManagerAddress address