Skip to content

feat(bath): name KTON's liquid staking actions kton, not liquidTF - #991

Open
awesome-doge wants to merge 2 commits into
tonkeeper:masterfrom
awesome-doge:kton-implementation
Open

awesome-doge wants to merge 2 commits into
tonkeeper:masterfrom
awesome-doge:kton-implementation

Conversation

@awesome-doge

Copy link
Copy Markdown

Builds on #990 (it uses the KTON constants added there).

KTON runs its own liquid staking pool on a newer version of the Tonstakers contract. Its deposits, withdraw requests and withdrawals are classified by op code, so they come out as liquidTF, and the apps show them as Tonstakers: iOS MultichainHistoryStakingProvider, Android HistoryStakingProvider and web poolBranding.ts all map liquidTF to Tonstakers.

This adds kton to PoolImplementationType (as hipo and ffvault were added) and sets it when the pool is KTON's or the burned jetton is KTON. Everything else stays liquidTF. The clients fall back to a generic stake item for a value they don't know, as they do for hipo today. I could not check whether the wallet history backend passes this field through.

Tested: three KTON traces from mainnet (deposit, withdraw request, instant withdraw) with goldens, a unit test that the Tonstakers pool keeps liquidTF, go generate with only the enum in the diff, go vet and go build ./.... The existing liquid staking cases fail locally with not found tx on master too (the public liteservers no longer have those blocks), so I could not rerun them.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant