@@ -156,14 +156,9 @@ export class UI {
156156 this . walletStatus . textContent = `Connected: ${ this . shortenAddress ( address ) } ` ;
157157 this . walletStatus . className = 'success' ;
158158 this . stakeSection . classList . remove ( 'hidden' ) ;
159- // Don't enable stake button yet - wait for match ID from server
160- this . stakeButton . disabled = true ;
161- this . stakeButton . textContent = 'Waiting for match...' ;
162- }
163-
164- enableStakeButton ( ) : void {
159+ // VAULT MODE: Enable deposit immediately (no match ID wait)
165160 this . stakeButton . disabled = false ;
166- this . stakeButton . textContent = 'Stake 1 SSS' ;
161+ this . stakeButton . textContent = 'Deposit 1 SSS to Vault ' ;
167162 }
168163
169164 updateWalletAddress ( address : string ) : void {
@@ -180,20 +175,34 @@ export class UI {
180175 this . playButton . classList . add ( 'hidden' ) ;
181176 }
182177
183- setStaked ( ) : void {
184- this . stakeButton . textContent = '✓ Staked ' ;
178+ setDeposited ( ) : void {
179+ this . stakeButton . textContent = '✓ Deposited to Vault ' ;
185180 this . stakeButton . disabled = true ;
186181 this . playButton . classList . remove ( 'hidden' ) ;
187182 this . playButton . disabled = false ;
188183 }
189184
190- resetStakeState ( ) : void {
191- this . stakeButton . textContent = 'Stake 1 SSS' ;
185+ resetDepositState ( ) : void {
186+ this . stakeButton . textContent = 'Deposit 1 SSS to Vault ' ;
192187 this . stakeButton . disabled = false ;
193188 this . playButton . classList . add ( 'hidden' ) ;
194189 this . playButton . disabled = true ;
195190 }
196191
192+ /**
193+ * @deprecated Use setDeposited() for vault mode
194+ */
195+ setStaked ( ) : void {
196+ this . setDeposited ( ) ;
197+ }
198+
199+ /**
200+ * @deprecated Use resetDepositState() for vault mode
201+ */
202+ resetStakeState ( ) : void {
203+ this . resetDepositState ( ) ;
204+ }
205+
197206 setWalletNotAvailable ( ) : void {
198207 this . connectWalletButton . disabled = true ;
199208 this . walletStatus . textContent = 'No wallet detected. Cannot play.' ;
@@ -204,18 +213,33 @@ export class UI {
204213 this . tokenBalance . textContent = balance ;
205214 }
206215
216+ getDepositAmount ( ) : string {
217+ return '1' ; // Fixed deposit amount for vault
218+ }
219+
220+ /**
221+ * @deprecated Use getDepositAmount() for vault mode
222+ */
207223 getStakeAmount ( ) : string {
208- return '1' ; // Fixed stake amount
224+ return this . getDepositAmount ( ) ;
209225 }
210226
211- onStake ( callback : ( ) => void ) : void {
227+ onDeposit ( callback : ( ) => void ) : void {
212228 this . stakeButton . addEventListener ( 'click' , ( ) => {
213229 callback ( ) ;
214230 } ) ;
215231 }
216232
217- updateCurrentScore ( totalScore : string ) : void {
218- this . currentScore . textContent = `${ totalScore } SSS` ;
233+ /**
234+ * @deprecated Use onDeposit() for vault mode
235+ */
236+ onStake ( callback : ( ) => void ) : void {
237+ this . onDeposit ( callback ) ;
238+ }
239+
240+ updateCurrentScore ( pelletTokens : string ) : void {
241+ // VAULT MODE: Display pellet tokens only (kill rewards go directly to wallet)
242+ this . currentScore . textContent = `${ pelletTokens } SSS (Pellets)` ;
219243 }
220244
221245 updateDeathScreenWithBestScore ( finalScore : number , bestScore : number ) : void {
0 commit comments