Convex

Convex

Account #161
Account 162 / 14299
FieldValueNotes
Account KeynullEd25519 public key (null for actors)
Balance
            0.000000000
Convex coin balance
Account Fields
FieldValueDescription
:sequence0Number of transactions executed by this account to date.
:keynilEd25519 public key of this account. If nil, account cannot execute external transactions (e.g. an actor).
:balance
            0.000000000
CVM balance of account. This is used for transaction fees and may be freely transferred.
:allowance0Memory allowance credit on the CVM. If positive, the account may allocated up to this amount of memory before incurring fees for additional memory.
:holdings59 value(s)Storage for holdings data referenced by other accounts.
:controllernilAccount controller. If set, the controller can execute code in this account (e.g. change the key). If you don't trust the controller, don't trust the account!
:environment14 value(s)Symbols defined in this account. Typically used to store data or executable code.
:metadata12 value(s)Metadata attached to symbols defined in this account.
:parentnilParent account. This defines fallback values for symbols not defined in this account.
Environment (14)

The Environment contains symbols defined in this account. These may be referenced like: #45/symbol-name

SymbolValueDescription
decimals(fn [] 0)nil
total-supply(fn [] #161/supply)nil
quantity-add(fn [a b] (let [a (cond %0 (int %0) 0) b (cond %1 (int %1) 0) ] (+ %2 %3)))nil
balance(fn [addr] (cond (get-holding %0) *result* 0))nil
direct-transfer(fn [addr amount data] (let [addr (address %0) amount (#161/-qc %1) bal (cond (get-holding *caller*) *result* 0) tbal (cond (get-holding %3) *result* 0) ] nil (cond (< %4 0) (fail :ARGUMENT "negative transfer")) (cond (> %4 %5) (fail :FUNDS "insufficent token balance")) (cond (= *caller* %3) (do (log "TR" *caller* %3 %4 %5 %5 %2) (return %4)) nil) (let [nsb (- %5 %4) nrb (+ %6 %4) ] (log "TR" *caller* %3 %4 %7 %8 %2) (set-holding *caller* %7) (set-holding %3 %8))))nil
quantity-subset?(fn [a b] (<= (cond %0 (int %0) 0) (cond %1 (int %1) 0)))nil
offer(fn [receiver quantity] (let [receiver (address %0) quantity (#161/-qc %1) ] (cond (<= %3 0) (cond (lookup-meta *address* offers) (def offers (#8/dissoc-in #161/offers (vector *caller* %2))) (fail :UNDECLARED offers)) (cond (lookup-meta *address* offers) (def offers (assoc-in #161/offers (vector *caller* %2) %3)) (fail :UNDECLARED offers))) %3))nil
supply1000000000000000000nil
check-transfer(fn [_sender _receiver _quantity] nil)nil
offers{}nil
get-offer(fn [sender receiver] (get-in #161/offers (vector %0 %1) 0))nil
-qc(fn [q] (cond (int? %0) %0 (nil? %0) 0 (fail :ARGUMENT "Invalid quantity")))nil
quantity-sub(fn [a b] (let [a (cond %0 (int %0) 0) b (cond %1 (int %1) 0) ] (cond (> %2 %3) (- %2 %3) 0)))nil
accept(fn [sender quantity] (let [sender (address %0) quantity (#161/-qc %1) om (get #161/offers %2) sendbal (cond (get-holding %2) *result* 0) offer (get %4 *caller* 0) ] (cond (< %3 0) (fail "Can't accept a negative quantity of fungible tokens.") (< %6 %3) (fail :STATE "Offer is insufficient") (< %5 %3) (fail :FUNDS "Sender token balance is insufficient") (let [new-offer (- %6 %3) ] (def offers (assoc #161/offers %2 (cond (> %7 0) (assoc %4 *caller* %7) (dissoc %4 *caller*)))) (set-holding %2 (- %5 %3)) (set-holding *caller* (+ (cond (get-holding *caller*) *result* 0) %3)) %3))))nil
Holdings (59)

Holdings track token balances and other indexed values by address.

AddressValue
#1310000000000000
#13210000000000000
#133999420000000000000
#13410000000000000
#13510000000000000
#13610000000000000
#13910000000000000
#15510000000000000
#15610000000000000
#15710000000000000
#15810000000000000
#15910000000000000
#16010000000000000
#18910000000000000
#19010000000000000
#19110000000000000
#19210000000000000
#19310000000000000
#19410000000000000
#19510000000000000
#19610000000000000
#19710000000000000
#19810000000000000
#19910000000000000
#20010000000000000
#20110000000000000
#20210000000000000
#20310000000000000
#20410000000000000
#20510000000000000
#20610000000000000
#20910000000000000
#21010000000000000
#21110000000000000
#21210000000000000
#21310000000000000
#21410000000000000
#21510000000000000
#21610000000000000
#21710000000000000
#21810000000000000
#21910000000000000
#22010000000000000
#22110000000000000
#22210000000000000
#22310000000000000
#22410000000000000
#22510000000000000
#22610000000000000
#22710000000000000
#22810000000000000
#22910000000000000
#23010000000000000
#23110000000000000
#23210000000000000
#23810000000000000
#26310000000000000
#26910000000000000
#1427810000000000000