By using this website, you agree to our
Cookie Policy
.
Shorter Finance Documentation
dev-resource
Smart Contracts Hierarchy
Pool Guardian
Search
Pool Guardian
Functions
getOnlinePools
Copy
function
getOnlinePools
(
)
external
view
returns
(
uint256
[
]
memory
onlinePools
)
{
getPoolData
Copy
function
getPoolData
(
uint256
_poolId
)
external
view
returns
(
uint256
_id
,
uint256
_stakedAmount
,
uint256
_borrowedAmount
,
uint256
_debtAmount
,
uint256
_usdAmount
,
address
_usdTokenAddr
)
getPoolInfo
Copy
function
getPoolInfo
(
uint256
_poolId
)
external
view
returns
(
address
_creator
,
uint256
_id
,
address
_stakedTokenAddr
,
address
_strTokenAddr
,
uint256
_leverage
,
uint256
_durationDays
,
uint256
_stateFlag
,
uint256
_endBlock
,
string
memory
_name
,
uint256
_decimal
)
deposit
Copy
function
deposit
(
uint256
_poolId
,
uint256
_amount
)
external
withdraw
Copy
function
withdraw
(
uint256
_poolId
,
uint256
_percent
,
uint256
_amount
)
external
getUserInfo
Copy
function
getUserInfo
(
uint256
_poolId
,
address
_user
)
external
view
returns
(
uint256
_amount
,
uint256
_usdAmount
,
uint256
_borrowedAmount
)
arrow-right
Previous
Smart Contracts Hierarchy
Next
Trading Hub
arrow-right