-
Notifications
You must be signed in to change notification settings - Fork 6.2k
update Landshare #15689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
update Landshare #15689
Conversation
The adapter at projects/landshare exports TVL:
|
projects/landshare/index.js
Outdated
tvl: async (api) => { | ||
try { | ||
// 1. LAND-BNB LP in MasterChef (PID 1) - get WBNB amount and multiply by 2 | ||
const [bnbInLP, totalLPSupply, lpStakedAmount] = await Promise.all([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LAND LP should be exported under pool2
like before
projects/landshare/index.js
Outdated
} | ||
|
||
// 2. LAND token staked - use totalStaked() function from MasterChef | ||
const totalLandStaked = await api.call({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LAND should be exported under staking
like before
projects/landshare/index.js
Outdated
} | ||
|
||
// 4. LSRWA-USDT LP - add the LP token itself, not just USDT balance | ||
const lsrwaUsdtLPBalance = await api.call({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be pool2
projects/landshare/index.js
Outdated
} | ||
|
||
// 3. RWA value - from getTotalValue() converted via formatEther | ||
const rwaValue = await api.call({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is the backing for this RWA? Is this minted by landshare?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, properties can be viewed at app.landshare.io/rwa
all property are tokenized under LSRWA Token
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we see some legal documentation indicating the ownership of the properties shown on the app? You could email or telegram them
The adapter at projects/landshare exports TVL:
|
Can you share an email and I'll send it over
…On Wed, Jul 30, 2025, 7:33 AM waynebruce0x ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In projects/landshare/index.js
<#15689 (comment)>
:
> + api.add(WBNB, stakedBnbInLP * 2);
+ }
+
+ // 2. LAND token staked - use totalStaked() function from MasterChef
+ const totalLandStaked = await api.call({
+ abi: 'function totalStaked() view returns (uint256)',
+ target: MASTER_CHEF
+ });
+
+ console.log(`Total LAND staked: ${totalLandStaked}`);
+ if (Number(totalLandStaked) > 0) {
+ api.add(LAND_TOKEN, totalLandStaked);
+ }
+
+ // 3. RWA value - from getTotalValue() converted via formatEther
+ const rwaValue = await api.call({
Can we see some legal documentation indicating the ownership of the
properties shown on the app? You could email or telegram them
—
Reply to this email directly, view it on GitHub
<#15689 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT6XCWZ36XIVT54JNPOYZLT3LC3SJAVCNFSM6AAAAACCST4EF6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTANZRGI2TKOJWG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
FYI, I sent the info a few days ago to your email |
Updated the previously non-functional Landshare Adapter