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
01 IF EXISTS("LAMBO INITIALIZED") THEN GOTO 100
02 DIM hard_cap AS Uint64
03 LET hard_cap = 2100000000000000
10 SEND_ASSET_TO_ADDRESS(SIGNER(), hard_cap, SCID())
11 STORE("LAMBO INITIALIZED", "TRUE")
12 STORE("nameHdr", "Lambo")
13 STORE("tickerHdr", "LAMBO")
14 STORE("ownerHdr", "ahmedv")
15 STORE("iconURLHdr", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
20 STORE("owner", SIGNER())
30 STORE("image_url", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
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)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// G45‑FAT wallet balance sync
// ---------------------------------------------------------------
Function DisplayToken() Uint64
01 DIM amount, stored AS Uint64
02 DIM signerStr AS String
03 LET signerStr = ADDRESS_STRING(SIGNER())
04 IF signerStr == "" THEN GOTO 100
05 LET amount = ASSETVALUE(SCID())
06 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 08
07 LET stored = LOAD("owner_" + signerStr)
08 STORE("owner_" + signerStr, amount + stored)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// Withdraw stored off‑chain balance
// ---------------------------------------------------------------
Function RetrieveToken(amount Uint64) Uint64
01 DIM stored AS Uint64
02 DIM signerStr AS String
03 LET signerStr = ADDRESS_STRING(SIGNER())
04 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 100
05 LET stored = LOAD("owner_" + signerStr)
06 IF amount > stored THEN GOTO 100
07 SEND_ASSET_TO_ADDRESS(SIGNER(), amount, SCID())
08 LET stored = stored - amount
09 IF stored == 0 THEN GOTO 11
10 STORE("owner_" + signerStr, stored)
11 RETURN 0
12 DELETE("owner_" + signerStr)
100 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
01 IF EXISTS("LAMBO INITIALIZED") THEN GOTO 100
02 DIM hard_cap AS Uint64
03 LET hard_cap = 2100000000000000
10 SEND_ASSET_TO_ADDRESS(SIGNER(), hard_cap, SCID())
11 STORE("LAMBO INITIALIZED", "TRUE")
12 STORE("nameHdr", "Lambo")
13 STORE("tickerHdr", "LAMBO")
14 STORE("ownerHdr", "ahmedv")
15 STORE("iconURLHdr", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
20 STORE("owner", SIGNER())
30 STORE("image_url", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
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)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// G45‑FAT wallet balance sync
// ---------------------------------------------------------------
Function DisplayToken() Uint64
01 DIM amount, stored AS Uint64
02 DIM signerStr AS String
03 LET signerStr = ADDRESS_STRING(SIGNER())
04 IF signerStr == "" THEN GOTO 100
05 LET amount = ASSETVALUE(SCID())
06 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 08
07 LET stored = LOAD("owner_" + signerStr)
08 STORE("owner_" + signerStr, amount + stored)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// Withdraw stored off‑chain balance
// ---------------------------------------------------------------
Function RetrieveToken(amount Uint64) Uint64
01 DIM stored AS Uint64
02 DIM signerStr AS String
03 LET signerStr = ADDRESS_STRING(SIGNER())
04 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 100
05 LET stored = LOAD("owner_" + signerStr)
06 IF amount > stored THEN GOTO 100
07 SEND_ASSET_TO_ADDRESS(SIGNER(), amount, SCID())
08 LET stored = stored - amount
09 IF stored == 0 THEN GOTO 11
10 STORE("owner_" + signerStr, stored)
11 RETURN 0
12 DELETE("owner_" + signerStr)
100 RETURN 1
End Function'] |