SC CODE: // ---------------------------------------------------------------
// LAMBO Token – G45‑FAT standard
// Total supply : 21 000 000 000 000 (21 trillion LAMBO)
// Decimals : 5 (1 LAMBO = 100 000 atomic units)
// All tokens pre-minted to creator wallet
// ---------------------------------------------------------------
Function InitializePrivate() Uint64
10 IF EXISTS("owner") THEN GOTO 200
// ───── HEADER / UI METADATA ─────
12 STORE("nameHdr", "Lambo")
13 STORE("tickerHdr", "LAMBO")
14 STORE("ownerHdr", "ahmedv")
15 STORE("iconURLHdr", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo")
// ───── CORE TOKEN METADATA ─────
20 STORE("owner", SIGNER())
30 STORE("image_url", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo")
31 STORE("type", "G45-FAT")
32 STORE("timestamp", BLOCK_TIMESTAMP())
40 STORE("name", "Lambo")
50 STORE("symbol", "LAMBO")
55 STORE("native_symbol", "LAMBO")
60 STORE("decimals", 5)
65 STORE("native_decimals", 0)
70 STORE("totalsupply", 2100000000000000)
75 STORE("minted", 2100000000000000)
// ───── PRE-MINT ALL TOKENS TO CREATOR ─────
80 SEND_ASSET_TO_ADDRESS(SIGNER(), 2100000000000000, SCID())
100 RETURN 0
200 RETURN 1
End Function
// ---------------------------------------------------------------
// G45‑FAT wallet balance sync
// ---------------------------------------------------------------
Function DisplayToken() Uint64
10 DIM amount, stored as Uint64
20 DIM signerStr as String
30 LET signerStr = ADDRESS_STRING(SIGNER())
40 IF signerStr == "" THEN GOTO 100
50 LET amount = ASSETVALUE(SCID())
60 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 80
70 LET stored = LOAD("owner_" + signerStr)
80 STORE("owner_" + signerStr, amount + stored)
90 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// Withdraw stored off‑chain balance
// ---------------------------------------------------------------
Function RetrieveToken(amount Uint64) Uint64
10 DIM stored as Uint64
20 DIM signerStr as String
30 LET signerStr = ADDRESS_STRING(SIGNER())
40 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 130
50 LET stored = LOAD("owner_" + signerStr)
60 IF amount > stored THEN GOTO 130
70 SEND_ASSET_TO_ADDRESS(SIGNER(), amount, SCID())
80 LET stored = stored - amount
90 IF stored == 0 THEN GOTO 110
100 STORE("owner_" + signerStr, stored)
110 RETURN 0
120 DELETE("owner_" + signerStr)
130 RETURN 1
End Function |
| SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'// ---------------------------------------------------------------
// LAMBO Token – G45‑FAT standard
// Total supply : 21 000 000 000 000 (21 trillion LAMBO)
// Decimals : 5 (1 LAMBO = 100 000 atomic units)
// All tokens pre-minted to creator wallet
// ---------------------------------------------------------------
Function InitializePrivate() Uint64
10 IF EXISTS("owner") THEN GOTO 200
// ───── HEADER / UI METADATA ─────
12 STORE("nameHdr", "Lambo")
13 STORE("tickerHdr", "LAMBO")
14 STORE("ownerHdr", "ahmedv")
15 STORE("iconURLHdr", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo")
// ───── CORE TOKEN METADATA ─────
20 STORE("owner", SIGNER())
30 STORE("image_url", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo")
31 STORE("type", "G45-FAT")
32 STORE("timestamp", BLOCK_TIMESTAMP())
40 STORE("name", "Lambo")
50 STORE("symbol", "LAMBO")
55 STORE("native_symbol", "LAMBO")
60 STORE("decimals", 5)
65 STORE("native_decimals", 0)
70 STORE("totalsupply", 2100000000000000)
75 STORE("minted", 2100000000000000)
// ───── PRE-MINT ALL TOKENS TO CREATOR ─────
80 SEND_ASSET_TO_ADDRESS(SIGNER(), 2100000000000000, SCID())
100 RETURN 0
200 RETURN 1
End Function
// ---------------------------------------------------------------
// G45‑FAT wallet balance sync
// ---------------------------------------------------------------
Function DisplayToken() Uint64
10 DIM amount, stored as Uint64
20 DIM signerStr as String
30 LET signerStr = ADDRESS_STRING(SIGNER())
40 IF signerStr == "" THEN GOTO 100
50 LET amount = ASSETVALUE(SCID())
60 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 80
70 LET stored = LOAD("owner_" + signerStr)
80 STORE("owner_" + signerStr, amount + stored)
90 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// Withdraw stored off‑chain balance
// ---------------------------------------------------------------
Function RetrieveToken(amount Uint64) Uint64
10 DIM stored as Uint64
20 DIM signerStr as String
30 LET signerStr = ADDRESS_STRING(SIGNER())
40 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 130
50 LET stored = LOAD("owner_" + signerStr)
60 IF amount > stored THEN GOTO 130
70 SEND_ASSET_TO_ADDRESS(SIGNER(), amount, SCID())
80 LET stored = stored - amount
90 IF stored == 0 THEN GOTO 110
100 STORE("owner_" + signerStr, stored)
110 RETURN 0
120 DELETE("owner_" + signerStr)
130 RETURN 1
End Function'] |