       dataType: 'jsonp')
     r(jqXHR)
 
-window.PrimediceClient = class PrimediceClient extends BaseClient
+window.Primedice = class Primedice extends BaseClient
   HOUSEEDGE: 1
   MAXROLL: 100.0
 
-  getSelf: -> @call('users/1')
-
-  getBalance: -> @getSelf().then (res) -> res.user.balance
+  getProfile: ->
+    @call('users/1').then (res) ->
+      { username: res.user.username, balance: res.user.balance }
+
   startRound: -> r()
 
   placebet: (bet, rollBelow) ->

    payout = +(@MAXROLL / rollBelow * kept).toFixed(5)
    [ rollBelow, payout ]

window.SatoshiDiceClient = class SatoshiDiceClient extends BaseClient
  HOUSEEDGE: 1.9
  MAXROLL: 65536.0

  getBalance: ->
    @call('userbalance').then (res) -> res.balanceInSatoshis

  startRound: ->
    @call('startround').then((@round) =>)

      count += 1
    [ count, total ]

window.BaseClient = class BaseClient extends Evented
  MINBET: 100

  @accessor 'balance',
