SC CODE: Function Initialize() Uint64
10 STORE("CEO",HEX(SCID()))
20 SEND_ASSET_TO_ADDRESS(SIGNER(),99,SCID())
30 STORE("QUORUM",0)
40 STORE("APPROVE",0)
50 STORE("SEAT_0",HEX(SCID()))
60 STORE("fxBot",HEX(SCID()))
70 STORE("fxDERO",100000)
75 STORE("treasuryDERO",0)
80 STORE("fxUSD",39063)
90 STORE("firstFriday",1693526400)
99 RETURN 0
End Function
Function Update(code String) Uint64
1 IF ASSETVALUE(HEXDECODE(LOAD("CEO")))<1 THEN GOTO 9
2 SEND_ASSET_TO_ADDRESS(SIGNER(),1,HEXDECODE(LOAD("CEO")))
5 UPDATE_SC_CODE(code)
8 RETURN 0
End Function
|
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function Initialize() Uint64
10 STORE("CEO",HEX(SCID()))
20 SEND_ASSET_TO_ADDRESS(SIGNER(),99,SCID())
30 STORE("QUORUM",0)
40 STORE("APPROVE",0)
50 STORE("SEAT_0",HEX(SCID()))
60 STORE("fxBot",HEX(SCID()))
70 STORE("fxDERO",100000)
75 STORE("treasuryDERO",0)
80 STORE("fxUSD",39063)
90 STORE("firstFriday",1693526400)
99 RETURN 0
End Function
Function Update(code String) Uint64
1 IF ASSETVALUE(HEXDECODE(LOAD("CEO")))<1 THEN GOTO 9
2 SEND_ASSET_TO_ADDRESS(SIGNER(),1,HEXDECODE(LOAD("CEO")))
5 UPDATE_SC_CODE(code)
8 RETURN 0
End Function
'] |