Content pfp
Content
@
0 reply
0 recast
0 reaction

SarveshⓂ️ pfp
SarveshⓂ️
@tokenstaker.eth
Added subgraph details to Moxie Power specification documentation. Also has testnet deployment details: Changes: 1. Added staked & unstaked balances in portfolio. - stakedBalance is locked fan tokens in moxie power contract. - unstaked balance is fan token in wallet. - balance = stakedBalance + unstakedBalance 2. Added lockInfo entity to track locks in moxie power contract. Changes are backward compatible. https://www.notion.so/Moxie-Power-Staking-specification-1041feaac8068094816ad7384c1d7476
1 reply
3 recasts
12 reactions

DegenFans 🎩🔵🫂Ⓜ️ pfp
DegenFans 🎩🔵🫂Ⓜ️
@degenfans
is it possible to add directly the subjecttoken to lockInfos?
1 reply
0 recast
0 reaction

SarveshⓂ️ pfp
SarveshⓂ️
@tokenstaker.eth
it is possible. query MyQuery { lockInfos { amount id isBuy logIndex lockPeriodInSec txHash unlockTimeInSec subjectToken { id name symbol } } }
1 reply
0 recast
3 reactions

DegenFans 🎩🔵🫂Ⓜ️ pfp
DegenFans 🎩🔵🫂Ⓜ️
@degenfans
from the docs it looks like only in context of portfolio/portfolioSpender. if a logIndex is updated then the API will just give one "record" or is there also a kind of transaction history of locks? e.g. i locked, 2 month later i extend the lock, is it possible to get both actions?
1 reply
0 recast
0 reaction

SarveshⓂ️ pfp
SarveshⓂ️
@tokenstaker.eth
There is no update to the lock. Lock is created, it stays till withdraw is done or its extended. Withdraw & extend will delete lock. Extend will additionally create a new lock.
1 reply
0 recast
1 reaction

DegenFans 🎩🔵🫂Ⓜ️ pfp
DegenFans 🎩🔵🫂Ⓜ️
@degenfans
and i guess deleted locks just disappear from the subgraph?
1 reply
0 recast
0 reaction

SarveshⓂ️ pfp
SarveshⓂ️
@tokenstaker.eth
Yes, how do you plan to use it?
1 reply
0 recast
0 reaction

DegenFans 🎩🔵🫂Ⓜ️ pfp
DegenFans 🎩🔵🫂Ⓜ️
@degenfans
i plan to build a "burn down" chart of locks, showing the locked value and going slowly down till all is unlocked
1 reply
0 recast
0 reaction

SarveshⓂ️ pfp
SarveshⓂ️
@tokenstaker.eth
Actually, for that we build a different subgraph to track history for locks. https://github.com/moxie-protocol/Subgraphs/blob/main/moxie-staking/schema.graphql I can publish this if it helps.
1 reply
0 recast
1 reaction