81 Matching Annotations
  1. Jul 2023
    1. Suidaiya is a digital collectible

      Read the whole docs. Now I wonder why do I want the SuiDaiya NFT? It is not backed by protocol revenue like the Daiya token. What is the future utility of the NFT? Any design for the NFTs?

      Not every new PoW set of objects can wield the narrative of store of value, imo. Or am I missing something here?

    2. stake your $Daiya tokens into the Daiya Vault in order to earn a share of the platform fees

      the token accrues value of the protocol fees, the SuiDaiya NFTs do not!?

    3. Suidaiya is the world first PoW-minable NFT.

      Interesting concept, but should we burn energy to make a NFT distribution more fair?

    4. fair, and competitive mechanism for launching NFTs.

      Its partly random and hence more fair, but spending more on hardware and energy increases your chances. Note that the spent USD does not provide security in this case.

    1. distributes $Daiya rewards

      To who?

      a minter pays Sui, that Sui goes to the Daiya stakers

      here it reads that Daiya rewards are paid out to the Daiya stakers in the vault...

    1. By minting a rare Suidaiya (>= level 2), you will be able to receive a certain percentage of the Lottery Pool. By minting a high level Suidaiya, you not only have a Suidaiya that is more valuable, but it will also earn you a higher percentage of the Lottery pool.

      Says 2 times the same thing no?

    2. than wrapping 10 $Sui of face value Suidaiya.

      What does this mean?

      "than wrapping a Sui coin with a face value of 10 in a Suidaiya object" correct?

    Tags

    Annotators

    URL

    1. option::fill(&mut lock.locked, obj);

      The "locked" field of the struc "lock" is of the Option type, so we need to use a method of the std:option module to access the fields value.

    1. some scenarios require /// type authorization by module X to be used in another module Y. Or, possibly, /// there's a case where authorization should be performed after some time.

      Where in the code base can I find an example of this?

    1. update_version

      update_version is a function defined in the display module. This has nothing to do with publishing or upgrading a package using the "sui client publish" command of the CLI.

    2. Object Display

      The Sui Object Display standard is a template engine that allows for on-chain management of off-chain representation (display) for a type. With it, you can substitute data for an object into a template string.

      In other words you can describe in your object how it should be shown in wallets, NFT market places etc. For more context you can checkout the youtube presentation of Damir the creator of the sui::display module.

    1. If a struct is declared with the ability... copy, all fields must have copy. drop, all fields must have drop. store, all fields must have store. key, all fields must have store. key is the only ability currently that doesn’t require itself.

      If a top-level object has an ability all fields also must have the ability. Except for key.

    1. For example, we are unable to put Coin<Currency1> into a wallet in the global storage.

      This is because type Currency1 does not have the key ability right. key --> ability to be put in an address/wallet in global storage, store --> ability to be put inside another object in global storage

    1. public fun prove_ownership<T>

      This function cant be tested from the sui explorer as it does not have the entry visibility, it needs to be called from a different module.

    1. In Sui Move, objects defined with only key ability can not be transferred by default.

      The Coin type from coin.move is transferable. Though I can't seem to find a transfer function.

      Does this imply that the store ability gives you access to transfer? No. Move language book about store ability does not mention anything about giving the feature of transferring.

    1. To make an object freely transferable, use a combination of key and store abilities.

      I would like more context here. What does freely transferable mean? Transfer from where to where? Whats an object? --> It needs the key ability and and id field. <> difference with a normal struct.

    2. not an object

      not an object that can be stored in onchain without a wrapper because it does not have the "key" ability

      store --> the struct can be stored in an object onchain

    1. _: &ShopOwnerCap

      The usage of an underscore _ --> &ShopOwnerCap is an unused function argument. Its unused but the Capability is required to call the function, such that only the owner of the capability (the shop owner) can call the function!

      PS: Change it to "cap" and see what the move-analyzer returns as feedback.

    1. /// Entrypoints can't have return values as they can only be called /// directly in a transaction and the returned value can't be used.

      entry functions cant have return values. Where is this stated in the move language book? What with a "public entry fun" ? The public adds the possibility of a return value I suppose without it being blocked by "entry".

    1. Scripts are ephemeral code snippets that are not published in global storage.

      Where to find example scripts for sui? I know about tests. Or interaction via ts scripts but not via move files.

  2. Jun 2023
    1. testnet set-active

      Wasn't the goal to avoid having to use "sui client switch"? What happens if I forget to use set-active? Its implicit that testnet should be active if I make a call "testnet publish" no?

    2. Cargo.toml dependencies to local repos

      I'm not aware of this cargo.toml file I was wrongly assuming this was about the move.toml file which we use for each package. Some extra context would be welcome here.

    3. Location of these repos are:~/suibase/workdirs/localnet/sui-repo

      Why sui-repo AND sui-repo-default folders in each network folder?

    1. You do not call sui directly anymore.

      What is the advice for your original sui binary? Should this be removed? cons and benefits? How much space is this taking up? The sui binary takes up 100MB

    2. localnet start

      solved - Can be run anywhere. Does not have to be run in ~/suibase Terminal needs to be restarted after installing suibase!

    3. brings back the network to its initial state

      solved - a start and stop also wipes the history? Is it possible to turn on history for a localnet?

    4. wiping out the network after testing.

      workdirs/localnet has many folders It is not clear what each folder is used for. Which fodler can we edit? Which one is wiped on a regen? Should we edit anything in config-default?

    1. Component

      Why the config-default and sui-repo-default folders?

      localnet regen seems to remove config and config-default also the keystore files.

  3. Sep 2022
  4. Mar 2021
  5. www.oxygen.org www.oxygen.org
    1. when you want them back

      Is it possible to call/withdraw the assets early? With a lockup of an extra 6 hours? Similar like how it works on FTX?

  6. www.oxygen.org www.oxygen.org
    1. Initially, liquidation will be done by third-party liquidators (you can be one too). Beta version will contain Serum DEX based liquidation - relying on decentralised exchange liquidity if available.

      So in the alpha -> third party liquidators? in beta -> SERUM DEX based liquidations? and after that still SERUm DEX based liquidations? How would that work? The oxygen protocol initiates the liquidation? The protocol captures the discount fees?

    2. Liquidation discount table specific for each asst Based on size of position, estimated daily move (based on weighted average of short-term and medium-term intraday move)

      Rephrase and elaborate please.

    3. matching of borrowing and lending orders

      What is the name of this orderbook? Instead of prices we have rates. A lender places lending rate asks and a borrower places borrowing rate bids. When there is a match, a loan is issued for an hour.

    4. execute risk-management through Serum’s decentralised exchange

      Who pays the Serum fees when a lender and borrower are matched?

  7. notes-finance.gitbook.io notes-finance.gitbook.io
    1. noteUSD is a combination

      Where can I see the noteUSD pool? That is the exact amount of assets that are in the noteUSD pool? Or is this not visible on chain?

    2. 3Pool Returns are paid to 3Pool liquidity providers in CRV, the native token of Curve Finance.

      Do we have to claim these? Are they dropped?

    3. Fixed Yield is the daily fixed interest rate the trading firm pays to token buyers as a rebase, automatically increasing the pool’s balance of Note Tokens.

      What is a rebase? Does this mean that if I'm currently holding 1000 noteUSD tokens in my wallet that I will have 1000 + X tokens in my wallet after the rebase (after 8 hours)? Yes, more info here: https://www.ampleforth.org/technology