stacks-network / sbtc-docs

Documentation about sBTC
https://stacks-network.github.io/sbtc-docs/
MIT License
9 stars 8 forks source link

Lagoon clarity contract issue in loans map #106

Closed sternbergm closed 10 months ago

sternbergm commented 10 months ago

the documentation indicates the map should be defined as this:

(define-map loans principal { amount: uint, last-interaction-block: uint })

in reality, we actually need this:

(define-map loans {owner : principal} { amount: uint, last-interaction-block: uint })

otherwise, we face issues in the rest of the code, where we are unable to use map-get? on the loans map.